Photon Bolt Engine API
Networking Middleware
Properties | List of all members
Bolt.IEventListener Interface Reference

Interface that can be implemented on Bolt.GlobalEventListener, Bolt.EntityEventListener and Bolt.EntityEventListener<T> to modify its invoke condition settings More...

Properties

bool InvokeIfDisabled [get]
 
bool InvokeIfGameObjectIsInactive [get]
 

Detailed Description

Interface that can be implemented on Bolt.GlobalEventListener, Bolt.EntityEventListener and Bolt.EntityEventListener<T> to modify its invoke condition settings

Example: A custom server callback class that invokes events even when disabled.

[BoltGlobalBehaviour(BoltNetworkModes.Server)]
public class BoltServerCallbacks : Bolt.GlobalEventListener, Bolt.IEventListener {
public bool InvokeIfDisabled { return true; }
public bool InvokeIfGameObjectIsInactive { return true; }
// event callback overrides below
}

Property Documentation

◆ InvokeIfDisabled

bool Bolt.IEventListener.InvokeIfDisabled
get

◆ InvokeIfGameObjectIsInactive

bool Bolt.IEventListener.InvokeIfGameObjectIsInactive
get