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()

This website is brand new and built with the Odin 2.1 beta in mind. This means you might discover some features such as attribute expressions that are only available in the beta.

You can download the 2.1 beta from here and read the patch-notes here.