docs.unity3d.com
    Show / Hide Table of Contents

    Struct StatefulKinematicCharacterHit

    A stateful version of character hits, which includes the hit state (enter, exit, stay)

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.CharacterController
    Syntax
    [Serializable]
    [InternalBufferCapacity(0)]
    public struct StatefulKinematicCharacterHit : IBufferElementData

    Constructors

    StatefulKinematicCharacterHit(KinematicCharacterHit)

    Constructs a stateful character hit from a character hit

    Declaration
    public StatefulKinematicCharacterHit(KinematicCharacterHit characterHit)
    Parameters
    Type Name Description
    KinematicCharacterHit characterHit

    The character hit

    Fields

    Hit

    The character hit

    Declaration
    public KinematicCharacterHit Hit
    Field Value
    Type Description
    KinematicCharacterHit

    State

    State of the hit (enter/exit/stay)

    Declaration
    public CharacterHitState State
    Field Value
    Type Description
    CharacterHitState
    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