docs.unity3d.com
Search Results for

    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
    Assembly: solution.dll
    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
    bool

    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
    In This Article
    Back to top
    Copyright © 2024 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)