Back To Index

EnableIfSessionType

Jump To Parameters
Jump To Function Definitions


Parameter Definitions

Select the parameter name from below to jump directly to it on this page.

isOwner
targets
type


isOwner

Enable these targets if you’re the owner or not

Exposed Value Type Default Value
protected bool true

Back To Top


targets

The list of targets to enable or disable.

Exposed Value Type Default Value
protected GameObject[] new GameObject[] { }

Back To Top


type

What type of photon session this has to be for these targets to enable.

Exposed Value Type Default Value
protected SessionType SessionType.Public

Back To Top

Function Definitions

Select the function name from below to jump directly to it on this page.

FixedUpdate
SetIsActive


protected virtual void FixedUpdate()

Will enable or disable objects by calling the SetIsActive function. Will only enable them if the photon session type and isOwner match.

Expose Value Overrideable Returns
protected True Does not return anything

No parameters

Back To Top


protected virtual void SetIsActive(bool isActive)

Enable or disable all the targets based on the input value.

Expose Value Overrideable Returns
protected True Does not return anything
Parameter Name Description
isActive bool type, active all the targets?

Back To Top