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
Enable these targets if you’re the owner or not
| Exposed Value | Type | Default Value |
|---|---|---|
| protected | bool | true |
targets
The list of targets to enable or disable.
| Exposed Value | Type | Default Value |
|---|---|---|
| protected | GameObject[] | new GameObject[] { } |
type
What type of photon session this has to be for these targets to enable.
| Exposed Value | Type | Default Value |
|---|---|---|
| protected | SessionType | SessionType.Public |
Function Definitions
Select the function name from below to jump directly to it on this page.
protected virtual void FixedUpdate()
Will enable or disable objects by calling the
SetIsActivefunction. Will only enable them if the photon session type and isOwner match.
| Expose Value | Overrideable | Returns |
|---|---|---|
| protected | True | Does not return anything |
No parameters
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? |