Photon Bolt Engine API 1.3

Public Member Functions | List of all members
Photon.Bolt.IEntityReplicationFilter Interface Reference

Interface for unity behaviours that want to control for each connection an Entity can be replicated to. More...

Public Member Functions

bool AllowReplicationTo (BoltConnection connection)
 Based on the BoltConnection, signal if this particular Entity must be replicated to it or not. By default, all entities are replicated to all connections. More...
 

Detailed Description

Interface for unity behaviours that want to control for each connection an Entity can be replicated to.

Member Function Documentation

◆ AllowReplicationTo()

bool Photon.Bolt.IEntityReplicationFilter.AllowReplicationTo ( BoltConnection  connection)

Based on the BoltConnection, signal if this particular Entity must be replicated to it or not. By default, all entities are replicated to all connections.

Parameters
connectionTarget BoltConnection to where the entity will be replicated
Returns
True to replicate the Entity for this connection, false otherwise