docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Physics.Authoring
    Assembly: Unity.Physics.Hybrid.dll
    Syntax
    [Serializable]
    public struct CustomPhysicsBodyTags

    Fields

    Tag00

    Tag 0

    Declaration
    public bool Tag00
    Field Value
    Type Description
    bool

    Tag01

    Tag 1

    Declaration
    public bool Tag01
    Field Value
    Type Description
    bool

    Tag02

    Tag 2

    Declaration
    public bool Tag02
    Field Value
    Type Description
    bool

    Tag03

    Tag 3

    Declaration
    public bool Tag03
    Field Value
    Type Description
    bool

    Tag04

    Tag 4

    Declaration
    public bool Tag04
    Field Value
    Type Description
    bool

    Tag05

    Tag 5

    Declaration
    public bool Tag05
    Field Value
    Type Description
    bool

    Tag06

    Tag 6

    Declaration
    public bool Tag06
    Field Value
    Type Description
    bool

    Tag07

    Tag 7

    Declaration
    public bool Tag07
    Field Value
    Type Description
    bool

    Properties

    Everything

    Gets a CustomPhysicsBodyTags instance with all tags set to true.

    Declaration
    public static CustomPhysicsBodyTags Everything { get; }
    Property Value
    Type Description
    CustomPhysicsBodyTags

    Nothing

    Gets a CustomPhysicsBodyTags instance with all tags set to false.

    Declaration
    public static 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
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)