Class SupportsPrefabOverridesAttribute
Use this attribute to allow a GhostComponent to support any kind of Ghost variation. Mutually exclusive to DontSupportPrefabOverridesAttribute.
Inherited Members
Namespace: Unity.Netcode
Assembly: Unity.NetCode.dll
Syntax
[AttributeUsage(AttributeTargets.Struct)]
[Obsolete("This attribute is now implicit (and thus this attribute does nothing), as all components (including components in other packages) should support user modification, and this prevented that. (RemovedAfter Entities 1.0)", true)]
public class SupportsPrefabOverridesAttribute : Attribute
Remarks
Note that if a type implements GhostComponentVariationAttribute, it implicitly supports prefab overrides.
Examples
Use Case: Disabling a rendering component on the Server version of a Ghost.