Hex Terrains Framework
Search Results for

    Show / Hide Table of Contents

    Struct CellItemTransformSettingsEditor

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Fwt.HexTerrains.Data
    Assembly: fwt.hexterrains.dll
    Syntax
    [Serializable]
    public struct CellItemTransformSettingsEditor

    Fields

    IsAbsoluteValues

    If true, ObjectTranslation, ObjectRotation and ObjectScale are set as absolute values in the Inspector window.

    Declaration
    [Tooltip("If true, ObjectTranslation, ObjectRotation and ObjectScale are set as absolute values in the Inspector window.")]
    public bool IsAbsoluteValues
    Field Value
    Type Description
    bool

    IsAutoRotation

    If true, the rotation for the object is automatically calculated based on the RotationY and OffsetFromCenter values.

    Declaration
    [Tooltip("If true, the rotation for the object is automatically calculated based on the RotationY and OffsetFromCenter values.")]
    public bool IsAutoRotation
    Field Value
    Type Description
    bool

    ObjectRotation

    Specifies the rotation to apply to each CellObject on a cell. Value is in Euler angles.

    Declaration
    [Tooltip("Specifies the rotation to apply to each CellObject on a cell. Value is in Euler angles.")]
    public Vector3 ObjectRotation
    Field Value
    Type Description
    Vector3

    ObjectScale

    Specifies the scale to apply to each CellObject on a cell.

    Declaration
    [Tooltip("Specifies the scale to apply to each CellObject on a cell.")]
    public Vector3 ObjectScale
    Field Value
    Type Description
    Vector3

    ObjectTranslation

    Specifies the translation offset to apply to each CellObject on a cell. Value is relative to the center of the cell.

    Declaration
    [Tooltip("Specifies the translation offset to apply to each CellObject on a cell. Value is relative to the center of the cell.")]
    public Vector3 ObjectTranslation
    Field Value
    Type Description
    Vector3

    OffsetFromCenter

    The offset distance from the center, in units (meters).

    Declaration
    [Tooltip("The offset distance from the center, in units (meters).")]
    [Min(0)]
    public float OffsetFromCenter
    Field Value
    Type Description
    float

    RotationY

    Rotation around the up axis in degrees.

    Declaration
    [Tooltip("Rotation around the up axis in degrees.")]
    [Range(0, 360)]
    public float RotationY
    Field Value
    Type Description
    float

    Properties

    Default

    Declaration
    public static CellItemTransformSettingsEditor Default { get; }
    Property Value
    Type Description
    CellItemTransformSettingsEditor

    ObjectMatrix

    Gets the transformation matrix that represents the object's position, rotation, and scale in local space.

    Declaration
    public Matrix4x4 ObjectMatrix { get; }
    Property Value
    Type Description
    Matrix4x4

    Operators

    implicit operator CellItemTransformSettingsEditor(CellItemTransformSettings)

    Declaration
    public static implicit operator CellItemTransformSettingsEditor(CellItemTransformSettings settings)
    Parameters
    Type Name Description
    CellItemTransformSettings settings
    Returns
    Type Description
    CellItemTransformSettingsEditor

    implicit operator CellItemTransformSettings(CellItemTransformSettingsEditor)

    Declaration
    public static implicit operator CellItemTransformSettings(CellItemTransformSettingsEditor editorSettings)
    Parameters
    Type Name Description
    CellItemTransformSettingsEditor editorSettings
    Returns
    Type Description
    CellItemTransformSettings

    Extension Methods

    HashExtensions.GetHashCode_ValueType<TValue>(TValue, int)
    Extensions_UnityObject.SmartDestroy(object)
    Extensions_UnityObject.SmartGetComponent<TComponent>(object)
    Extensions_UnityObject.SmartGetGameGameObject(object)
    In this article
    Back to top Generated by DocFX