Language
Edit

PhysicsLayerAttribute Class

Definition

Attribute used to make an int field render a dropdown generated from the current layers defined in the Unity tag manager.

[System.AttributeUsage(System.AttributeTargets.Field)]
public sealed class PhysicsLayerAttribute : UnityEngine.PropertyAttribute
[<System.AttributeUsage(System.AttributeTargets.Field)>]
type PhysicsLayerAttribute = class
    inherit PropertyAttribute
Public NotInheritable Class PhysicsLayerAttribute
Inherits PropertyAttribute
Inheritance
UnityEngine.PropertyAttribute
PhysicsLayerAttribute
Attributes

Constructors

Name Description
PhysicsLayerAttribute()

Initializes a new instance of the PhysicsLayerAttribute class.

Applies to