Cannot provide position as a parameter to Instantiate?
interested
N
NoelVincent
Forgive me if this has been addressed elsewhere, but it seems like Vrchat Instantiate only takes in one parameter: the prefab/gameobject.
This causes the object to be cloned at its default position, e.g. 0,0,0.
Additionally, transposing the object's position after cloning duplicates the object again in my graph setups for some reason.
I'm using the latest SDK and Unity version as of this post date.
Log In
Momo the Monster
interested
NoelVincent that's correct. Adding position is on the roadmap. VRCInstantiate is not working right now (the release notes calls this out). Better to work around with Object Pools until we get it fixed up. Thanks!
N
NoelVincent
Momo the Monster: Momo, thank you for your quick response! I looked into how object pools are implemented with standard C# scripting, but are there any resources/examples to help me implement them in an Udon graph? I would really appreciate it!