Notifications
bg
Warren Wang
CEO - Programmer
Vancouver, Canada
29
Likes
44
Followers
24
Connections
All
Articles3
Games5
Showcases4
Column12
Jobs0
Warren Wang
updated the article
Dec 21, 2018 1:57 AM
Cross-Platform Native (Unmanaged) Plugins
Making non-cross platform code a cross-platform reality
Cross-Platform Native (Unmanaged) Plugins
Article
Warren Wang
updated the article
Dec 21, 2018 1:56 AM
Performance Optimization Primer - Part 1
Move Fast and Break Things
Performance Optimization Primer - Part 1
Article
Warren Wang
3 months ago
Carlos AdanThank you for the tips. #4 wasn't entirely clear for me. Could you elaborate a bit more on it? Thanks
Hi Carlos. So generally, when people are instantiating GameObjects, they usually create one using the constructor that doesn't define a parent transform. What happens then is that upon instantiation, the GameObject's transform is attached to the root transform. Often in a few lines of code later, people will reparent the newly created GameObject using Transform.SetParent(). This goes through the whole process again and has to recalculate the Transforms in the hierarchy to fit it under a specific parent transform. The best practices suggested by Ian in his talks was to assign the parent transform on instantiation to avoid this. That way it's created "in place" essentially. I hope that provides more insight into this tip.
Carlos Adan
3 months ago
Thank you for the tips. #4 wasn't entirely clear for me. Could you elaborate a bit more on it? Thanks
Warren Wang
updated the article
Dec 21, 2018 1:54 AM
SteamVR 2.0 Starter/Migration & Action Sets
Learn the new workflow, save time, and support more devices
SteamVR 2.0 Starter/Migration & Action Sets
Article
Warren Wang
a month ago
Alejandro CastanOn he other hand. I found 2 problem. I created the script DemoActionSetInput with the code included here and added it to the Camera Rig prefab and I cannot assign the reference Action Set Enable(actions/demoactionset not appear like option) and when I play the Unity Editor cannot see in the console the pribted NEXT ITEM, for it, Could you help me to fix it? Thanks Alejandro
A couple of questions: 1) When you created the new ActionSet, did you you click save and generate to make sure the plugin did its thing and created the files in SteamVR_Input? 2) On your DemoActionSetInput script, what variable types are you specifying for each action? ie. SteamVR_ActionSet, SteamVR_Action_Vector2, SteamVR_Action_Boolean 3) Are those variables in question #2 public or Serialized? If not they won't be visible in the inspector. If you're located in Canada, I can try to help you via the Unity Live Help direct booking method. Otherwise, you can send me a private message and I'll give you my discord information and I can try to help you out there. Thanks!
Alejandro Castan
2 months ago
On he other hand. I found 2 problem. I created the script DemoActionSetInput with the code included here and added it to the Camera Rig prefab and I cannot assign the reference Action Set Enable(actions/demoactionset not appear like option) and when I play the Unity Editor cannot see in the console the pribted NEXT ITEM, for it, Could you help me to fix it? Thanks Alejandro
Alejandro Castan
2 months ago
First, thanks t share this article with us !!!
Alejandro Castan
2 months ago
Hi Warren
Warren Wang
published the article
Nov 25, 2018 5:35 AM
SteamVR 2.0 Starter/Migration & Action Sets
Learn the new workflow, save time, and support more devices
SteamVR 2.0 Starter/Migration & Action Sets
Article
Warren Wang
a month ago
Alejandro CastanOn he other hand. I found 2 problem. I created the script DemoActionSetInput with the code included here and added it to the Camera Rig prefab and I cannot assign the reference Action Set Enable(actions/demoactionset not appear like option) and when I play the Unity Editor cannot see in the console the pribted NEXT ITEM, for it, Could you help me to fix it? Thanks Alejandro
A couple of questions: 1) When you created the new ActionSet, did you you click save and generate to make sure the plugin did its thing and created the files in SteamVR_Input? 2) On your DemoActionSetInput script, what variable types are you specifying for each action? ie. SteamVR_ActionSet, SteamVR_Action_Vector2, SteamVR_Action_Boolean 3) Are those variables in question #2 public or Serialized? If not they won't be visible in the inspector. If you're located in Canada, I can try to help you via the Unity Live Help direct booking method. Otherwise, you can send me a private message and I'll give you my discord information and I can try to help you out there. Thanks!
Alejandro Castan
2 months ago
On he other hand. I found 2 problem. I created the script DemoActionSetInput with the code included here and added it to the Camera Rig prefab and I cannot assign the reference Action Set Enable(actions/demoactionset not appear like option) and when I play the Unity Editor cannot see in the console the pribted NEXT ITEM, for it, Could you help me to fix it? Thanks Alejandro
Alejandro Castan
2 months ago
First, thanks t share this article with us !!!
Alejandro Castan
2 months ago
Hi Warren
Warren Wang
updated the article
Nov 16, 2018 5:04 AM
Performance Optimization Primer - Part 1
Move Fast and Break Things
Performance Optimization Primer - Part 1
Article
Warren Wang
3 months ago
Carlos AdanThank you for the tips. #4 wasn't entirely clear for me. Could you elaborate a bit more on it? Thanks
Hi Carlos. So generally, when people are instantiating GameObjects, they usually create one using the constructor that doesn't define a parent transform. What happens then is that upon instantiation, the GameObject's transform is attached to the root transform. Often in a few lines of code later, people will reparent the newly created GameObject using Transform.SetParent(). This goes through the whole process again and has to recalculate the Transforms in the hierarchy to fit it under a specific parent transform. The best practices suggested by Ian in his talks was to assign the parent transform on instantiation to avoid this. That way it's created "in place" essentially. I hope that provides more insight into this tip.
Carlos Adan
3 months ago
Thank you for the tips. #4 wasn't entirely clear for me. Could you elaborate a bit more on it? Thanks
Warren Wang
updated the article
Nov 16, 2018 5:02 AM
Cross-Platform Native (Unmanaged) Plugins
Making non-cross platform code a cross-platform reality
Cross-Platform Native (Unmanaged) Plugins
Article
About Me
I'm the co-founder of Qoobit Productions Inc., a digital agency based in Vancouver, BC, Canada....
Qoobit Productions Inc.
CEO
Simon Fraser University
Computer Science
See more
Certifications (6)
Import
NVIDIA DLI Natural Language Processing
Oct 2017
NVIDIA Accelerated Computing with CUDA C/C++
May 2018
AWSome Day
Apr 2017
See all
Warren Wang's liked projects (8)
Following (34)
Followers (44)
Following Companies (0)
Not following anyone yet