Placing a GameObject as a child node prevents access to variables and switches

I am placing a GameObject directly as a child node of another GameObject.

When the parent GameObject is placed directly in the game scene, there is no issue. However, if the parent node is spawned from another Object using the “Spawn Object” action in Visual Scripting (VS), variables or switches of the child GameObject can no longer be modified.

Example: Attempting to change the variable hp of the child GameObject from 1 to 5 using the “Change Property” action in VS:
a) When placed directly, it changes to 5.
b) When spawned, it remains at 1.

a)

b)

Additionally, when spawned, attempting to display a variable using the “Show Text” action causes the game to crash.

Regarding this, we have encountered an issue where generating a game object that has another game object as a child node does not function correctly due to an unrelated matter. We plan to release a fix for this in the next update.

It may or may not be related to this issue. However, if the problem persists after reviewing the fixes in the next update, please report it to us again.

Additionally,
Although it requires some effort, we have confirmed that the system works by first generating a game object and then generating another game object as a child object from the initially generated game object.

2 Likes

We have just released version 1.2.6 with a fix for the child node game object issue. Please feel free to check it out!

Thank you for your response.

I have confirmed that the variables in the child nodes are now mutable.

The text display also did not crash.