Class NetcodeEditorBase<TT>
The base Netcode Editor helper class to display derived MonoBehaviour based components
where each child generation's properties will be displayed within a FoldoutHeaderGroup.
Inherited Members
Editor.CreateEditorWithContext(Object[], Object)
Editor.OnHeaderGUI()
Editor.DrawFoldoutInspector(Object, ref Editor)
Editor.ReloadPreviewInstances()
Editor.MoveNextTarget()
Editor.ResetTarget()
Editor.finishedDefaultHeaderGUI
ScriptableObject.SetDirty()
ScriptableObject.CreateInstance<T>()
Object.GetHashCode()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.Netcode.Editor
Assembly: Unity.Netcode.Editor.dll
Syntax
[CanEditMultipleObjects]
public class NetcodeEditorBase<TT> : Editor where TT : MonoBehaviour
Type Parameters
Name | Description |
---|---|
TT |
Methods
DrawFoldOutGroup<T>(Type, Action, bool, Action<bool>)
Helper method to draw the properties of the specified child type T
component within a FoldoutHeaderGroup.
Declaration
protected void DrawFoldOutGroup<T>(Type type, Action displayProperties, bool expanded, Action<bool> setExpandedProperty)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The component type of the target. |
Action | displayProperties | The Action to invoke that will draw the type |
bool | expanded | The |
Action<bool> | setExpandedProperty | The Action<T> invoked to apply the updated |
Type Parameters
Name | Description |
---|---|
T | The specific child type that should have its properties drawn. |
OnEnable()
Declaration
public virtual void OnEnable()
OnInspectorGUI()
Implement this function to make a custom inspector.
Declaration
public override void OnInspectorGUI()