docs.unity3d.com
    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.ReferenceEquals(Object, Object)
    Object.GetType()
    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
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023