Network Instantiate

Node description and basic instructions

Uses Photon engine to instantiate object on network scene.

In order for it to work, it is necessary that the scenes have a gameobject with Photon View component.

The created prefab must be located in the Resources folder and have a PhotonView component. Also, if there is a need to install a parent for this object, there must be a NetworkObjectInstance component on it.


To create it, right-click on free space in Behaviour Tree window and select:

  • Create Node/Tasks/Integrations/Photon/Network Instantiate

This task node has a number of fields, that are highlighted in picture below.

Fields

NameDescription

Node Name

Custom name of node.

Ignore Abort Self

Whether node ignores abort self or not.

Object To Instantiate

Object reference to instantiate it.

Position

Instantiate position.

Rotation

Instantiate rotation.

Parent

Instantiate object as child of.

Using the parent property, when creating an object on the server, starts a search on the scene by the name of the parent object, using the GameObject.Find(name) function. Which can negatively affect performance.


Photon View

Required componet for Photon Engine instantiate node.

Last updated