Struct CellItemTransformSettingsEditor
Assembly: fwt.hexterrains.dll
[Serializable]
public struct CellItemTransformSettingsEditor
Fields
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
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
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
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
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
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
Rotation around the up axis in degrees.
Declaration
[Tooltip("Rotation around the up axis in degrees.")]
[Range(0, 360)]
public float RotationY
Field Value
Properties
Declaration
public static CellItemTransformSettingsEditor Default { get; }
Property Value
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
Declaration
public static implicit operator CellItemTransformSettingsEditor(CellItemTransformSettings settings)
Parameters
Returns
Declaration
public static implicit operator CellItemTransformSettings(CellItemTransformSettingsEditor editorSettings)
Parameters
Returns
Extension Methods