Forum Discussion
Justin_Michaux
Feb 16, 2024Copper Contributor
Instantiating or Destroying a GameObject
Hello, I noticed that after installing the Mesh Toolkit in Unity, nodes for Instantiating or Destroying GameObjects are not available in Visual Scripting anymore. Also it is impossible to create a c...
michael-buschbeck-ms
Microsoft
May 02, 2024You're right, instantiating and destroying scene object currently isn't supported in Mesh Visual Scripting.
It's not a security issue as much as an integration complication: Out of the box, instantiating an object in a visual script would create an isolated instance that only exists on the client that created it. Even if you were to make sure that you're instantiating the same scene object on all clients individually, Mesh wouldn't know they're collectively supposed to be the same shared object.
That said, I'm aware it's a pain point and we're actively working towards making it possible.
It's not a security issue as much as an integration complication: Out of the box, instantiating an object in a visual script would create an isolated instance that only exists on the client that created it. Even if you were to make sure that you're instantiating the same scene object on all clients individually, Mesh wouldn't know they're collectively supposed to be the same shared object.
That said, I'm aware it's a pain point and we're actively working towards making it possible.
Weald_Spatial
May 02, 2024Brass Contributor
Thank you for clearing this up. Is it possible with Cloud Scripting?