Skip to main content

Agent.ChannelEvent

A class in Root.Township, Alta.Intelligence.

A Unity event an agent fires on one hook event channel (by array index in Agent.ChannelEvents). Server-only unless marked as networked.

Constructors​

MemberWhat it is
ChannelEvent()Creates an Agent.ChannelEvent with default values.

Fields​

2 private and internal fields
MemberWhat it is
private UnityEvent eventFiredBacking field for EventFired.
private bool isNetworkedBacking field for IsNetworked.

Properties​

MemberWhat it is
UnityEvent EventFired { get; }Unity event run when the agent fires this channel.
bool IsNetworked { get; }If true, the event also runs on clients: the server sends the channel to the chunk when it fires. If false, only the server registers it.

Used in​

Members of other types that take, return or hold a ChannelEvent: