Skip to content

QuaternionValueAsset

ScriptableObject that stores a shared Quaternion (as euler angles), editable in the Project window.

Namespace: Jungle.Spatial
Inherits: ValueAsset<Quaternion>

Overview

Create from Jungle / Spatial / Orientation Value. Shown in pickers as Orientation Asset. Stores a facing as euler angles internally for inspector-friendly editing. Returns a Quaternion at runtime. Angles are kept as typed, so a value read from it keeps 720 or -90. A companion QuaternionListValueAsset (Orientation List Asset) stores a list.

Properties

Property Type Description
eulerAngles Vector3 The rotation stored as euler angles.

Additional Methods

Method Description
EulerAngles Property returning the stored euler angles directly.
SetEulerAngles(Vector3) Sets the rotation using euler angles.

See Also