docs.unity3d.com
    Show / Hide Table of Contents

    Struct CharacterData

    Data structure that represents a character setup

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: UnityEditor.U2D.Animation
    Syntax
    [Serializable]
    [MovedFrom("UnityEditor.U2D.Experimental.Animation")]
    public struct CharacterData

    Fields

    boneReadOnly

    Bones are readonly

    Declaration
    [Obsolete("boneReadOnly is no longer part of CharacterData. To check if character has Main Skeleton assigned to it, please use IMainSkeletonDataProvider instead.")]
    public bool boneReadOnly
    Field Value
    Type Description
    Boolean

    bones

    SpriteBones influencing the Character

    Declaration
    public SpriteBone[] bones
    Field Value
    Type Description
    SpriteBone[]

    characterGroups

    Character grouping information

    Declaration
    public CharacterGroup[] characterGroups
    Field Value
    Type Description
    CharacterGroup[]

    dimension

    The dimension of the character required

    Declaration
    public Vector2Int dimension
    Field Value
    Type Description
    Vector2Int

    parts

    Parts of the character

    Declaration
    public CharacterPart[] parts
    Field Value
    Type Description
    CharacterPart[]

    pivot

    Character pivot. The value is a normalized value between (0,0) and (1,1) where (1,1) represents the value in CharacterData.dimension

    Declaration
    public Vector2 pivot
    Field Value
    Type Description
    Vector2
    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