Global Events, exclude bolt connection from Send()?
Options
in Photon Bolt
Is it possible to exclude a bolt connection as receiver from Send()?
0
Comments
-
There are 8 overrides for creating an event
public static LogEvent Create();
public static LogEvent Create(ReliabilityModes reliability);
public static LogEvent Create(BoltConnection connection);
public static LogEvent Create(BoltEntity entity);
public static LogEvent Create(GlobalTargets targets);
public static LogEvent Create(BoltEntity entity, EntityTargets targets);
public static LogEvent Create(BoltConnection connection, ReliabilityModes reliability);
public static LogEvent Create(GlobalTargets targets, ReliabilityModes reliability);
These will let you send the event to only clients, only server, only a specific connection (along with the event settings when you create it in the Bolt editor)1 -
Oh, I never thought about that it could be an overload of Create(), I'm not sure how this is handled by Bolt internally, but I think Send() would be a better place for those overloads, so we don't need to re-create the event for each bolt connection.
Thanks.0 -
I agree, Send makes more sense for where to specify who it goes to, and also the reliability of it.0