#How to assign spawned object in play mode reference to script?

1 messages · Page 1 of 1 (latest)

devout sand
#

Hi, I'm using the avatar from VR multiplayer template. There are 2 avatars, the offline one and the network player avatar, I could assign the offline avatar to the script reference because it is already in the hierachy. The network player avatar will only be used when I joined a room in the play mode, so it isn't in the hierachy, so I would like to know how do I assign something that is not in the hierachy but will be spawned later in the play mode into the script reference? I wanted to assign the head child object of Unity Creator object which is the network player avatar(Currently not in the scene and will appear later in the play mode) into one of my scripts. Thanks.