Skip to main content

NetworkEntityObjectIssueLog

A static class in Root.Township, the global namespace.

Editor-only assert helpers on ObjectIssueLog. Every method is marked Conditional("UNITY_EDITOR"), so calls are removed from game builds.

Methods​

MemberWhat it is
static void AssertEntity(ObjectIssueLog log, NetworkEntity topic, bool condition, string message)Throws if the condition is false.
static void AssertExistsEntity(ObjectIssueLog log, NetworkEntity topic, Object value, string message)Throws if the object is null, or if any object in the list is null.
static void AssertExistsEntity(ObjectIssueLog log, NetworkEntity topic, IEnumerable<Object> value, string message)Throws if the object is null, or if any object in the list is null.
static void AssertExistsFind(ObjectIssueLog log, Component component, Object value, string message)Throws if the object is null, or if any object in the list is null.
static void AssertExistsFind(ObjectIssueLog log, Component component, IEnumerable<Object> value, string message)Throws if the object is null, or if any object in the list is null.
static void AssertFind(ObjectIssueLog log, Component component, bool condition, string message)Throws if the condition is false.