Class NetworkBehaviourEditor
The Custom
Inherited Members
Namespace: Unity.Netcode.Editor
Assembly: Unity.Netcode.Editor.dll
Syntax
[CustomEditor(typeof(NetworkBehaviour), true)]
[CanEditMultipleObjects]
public class NetworkBehaviourEditor : Editor
Methods
CheckForNetworkObject(GameObject, bool)
Used to determine if a GameObject has one or more NetworkBehaviours but does not already have a NetworkObject component. If not it will notify the user that NetworkBehaviours require a NetworkObject.
Declaration
public static void CheckForNetworkObject(GameObject gameObject, bool networkObjectRemoved = false)
Parameters
Type | Name | Description |
---|---|---|
Game |
gameObject | Game |
bool | networkObjectRemoved | used internally |
GetRootParentTransform(Transform)
Recursively finds the root parent of a Transform
Declaration
public static Transform GetRootParentTransform(Transform transform)
Parameters
Returns
OnInspectorGUI()
Implement this function to make a custom inspector.
Declaration
public override void OnInspectorGUI()