MultiplayerRoleRestrictedAttribute
Marks a MonoBehaviour as multiplayer role restricted so it cannot be stripped in Server or Client platforms.
Read time 3 minutesLast updated 5 days ago
Definition
- Type: Class
- Namespace: Unity.Multiplayer
- Assembly: UnityEngine.MultiplayerModule
- Inherits from: Attribute
[AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = false)]public sealed class MultiplayerRoleRestrictedAttribute : Attribute