Hello there!
I am wondering can I add NetworkTransformChild component to my game object by script? I have child object that is generated for parent on the fly, when I try to do this, more specifically
the line 134(if I remember correctly) in the Awake function call in NetworkTransformChild.cs, throws NullPointException.
This is expected if NetworkTransformChild.cs use the target field in the...
UNET add NetworkTransformChild through script
I am wondering can I add NetworkTransformChild component to my game object by script? I have child object that is generated for parent on the fly, when I try to do this, more specifically
Code (CSharp):
- var childT = this.AddComponent<NetworkTransformChild>();
- childT.target = ...
the line 134(if I remember correctly) in the Awake function call in NetworkTransformChild.cs, throws NullPointException.
This is expected if NetworkTransformChild.cs use the target field in the...
UNET add NetworkTransformChild through script