Photon Fusion 1.1.2

Public Member Functions | Public Attributes | List of all members
RunnerVisibilityNodes Class Reference

Automatically adds a RunnerVisibilityNode for each indicated component. These indicated components will be limited to no more than one enabled instance when running in Multi-Peer mode. More...

Inherits Behaviour.

Public Member Functions

void FindRecognizedTypes ()
 Finds visual/audio components on this GameObject, and adds them to the Components collection. More...
 
void FindNestedRecognizedTypes ()
 Finds visual/audio nested components on this GameObject and its children, and adds them to the Components collection. More...
 
- Public Member Functions inherited from Behaviour
AddBehaviour< T > ()
 Wrapper for Unity's GameObject.AddComponent() More...
 
bool TryGetBehaviour< T > (out T behaviour)
 Wrapper for Unity's GameObject.TryGetComponent() More...
 
GetBehaviour< T > ()
 Wrapper for Unity's GameObject.GetComponentInChildren() More...
 

Public Attributes

RunnerVisibilityNode.PreferredRunners PreferredRunner
 If more than one runner instance is visible, this indicates which peer's clone of this entity should be visible. More...
 
UnityEngine.Component[] Components = new Component[0]
 Collection of components that will be marked for Multi-Peer mode as objects that should only have one enabled instance. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Behaviour
static void DestroyBehaviour (Behaviour behaviour)
 Wrapper for Unity's GameObject.Destroy() More...
 

Detailed Description

Automatically adds a RunnerVisibilityNode for each indicated component. These indicated components will be limited to no more than one enabled instance when running in Multi-Peer mode.

Member Function Documentation

◆ FindNestedRecognizedTypes()

void FindNestedRecognizedTypes ( )

Finds visual/audio nested components on this GameObject and its children, and adds them to the Components collection.

◆ FindRecognizedTypes()

void FindRecognizedTypes ( )

Finds visual/audio components on this GameObject, and adds them to the Components collection.

Member Data Documentation

◆ Components

UnityEngine.Component [] Components = new Component[0]

Collection of components that will be marked for Multi-Peer mode as objects that should only have one enabled instance.

◆ PreferredRunner

If more than one runner instance is visible, this indicates which peer's clone of this entity should be visible.