Struct CustomPhysicsBodyTags
Custom physics Body Tags.
A lightweight type containing eight tags that can be individually toggled. Designed for tagging of rigid bodies.
Inherited Members
Namespace: Unity.Physics.Authoring
Syntax
[Serializable]
public struct CustomPhysicsBodyTags
Fields
Tag00
Tag 0
Declaration
public bool Tag00
Field Value
Type | Description |
---|---|
Boolean |
Tag01
Tag 1
Declaration
public bool Tag01
Field Value
Type | Description |
---|---|
Boolean |
Tag02
Tag 2
Declaration
public bool Tag02
Field Value
Type | Description |
---|---|
Boolean |
Tag03
Tag 3
Declaration
public bool Tag03
Field Value
Type | Description |
---|---|
Boolean |
Tag04
Tag 4
Declaration
public bool Tag04
Field Value
Type | Description |
---|---|
Boolean |
Tag05
Tag 5
Declaration
public bool Tag05
Field Value
Type | Description |
---|---|
Boolean |
Tag06
Tag 6
Declaration
public bool Tag06
Field Value
Type | Description |
---|---|
Boolean |
Tag07
Tag 7
Declaration
public bool Tag07
Field Value
Type | Description |
---|---|
Boolean |
Properties
Everything
Gets a CustomPhysicsBodyTags instance with all tags set to true.
Declaration
public static readonly CustomPhysicsBodyTags Everything { get; }
Property Value
Type | Description |
---|---|
CustomPhysicsBodyTags |
Nothing
Gets a CustomPhysicsBodyTags instance with all tags set to false.
Declaration
public static readonly CustomPhysicsBodyTags Nothing { get; }
Property Value
Type | Description |
---|---|
CustomPhysicsBodyTags |
Value
A compact bitarray property representing the value of the tags 0 to 7 in a single byte.
The i'th bit in the byte represents the value of the i'th tag, with a 1 corresponding to the true state.
Declaration
public byte Value { get; set; }
Property Value
Type | Description |
---|---|
Byte |