Version 2.1.0.0

Odin has a dedicated attribute overview with examples

HideNetworkBehaviourFieldsAttribute class

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector.Attributes
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public sealed class HideNetworkBehaviourFieldsAttribute : Attribute, _Attribute
Apply HideNetworkBehaviourFields to your class to prevent the special "Network Channel" and "Network Send Interval" properties from being shown in the inspector for a NetworkBehaviour. This attribute has no effect on classes that are not derived from NetworkBehaviour.
Inheritance
  • System.Object
  • System.Attribute
  • HideNetworkBehaviourFieldsAttribute
Example

The following example shows how to use this attribute.

[HideNetworkBehaviourFields]
public class MyComponent : NetworkBehaviour
{
    // The "Network Channel" and "Network Send Interval" properties will not be shown for this component in the inspector
}
See Also
  • System.Attribute

Constructors

HideNetworkBehaviourFieldsAttribute()
public HideNetworkBehaviourFieldsAttribute()