HideNetworkBehaviourFieldsAttribute

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.

namespace Sirenix.OdinInspector
{
[AttributeUsageAttribute((AttributeTargets)4, AllowMultiple = False, Inherited = True)]
public sealed class HideNetworkBehaviourFieldsAttribute : Attribute
}

Requirements

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector
Version: 2.0.0.0

See Also

  • Attribute

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
}