pub struct BlendNode {Show 16 fields
pub blend_type: i64,
pub event_id: u32,
pub event_y_id: u32,
pub children: Vec<u32>,
pub thresholds: Vec<f32>,
pub positions: Vec<[f32; 2]>,
pub magnitudes: Vec<f32>,
pub pair_vectors: Vec<[f32; 2]>,
pub pair_avg_mag_inv: Vec<f32>,
pub neighbors: Vec<Vec<u32>>,
pub direct_events: Vec<u32>,
pub normalized_blend_values: bool,
pub clip: u32,
pub duration: f32,
pub cycle_offset: f32,
pub mirror: bool,
}Expand description
One node of a blend tree (BlendTreeNodeConstant): its kind (0 1D, 1 simple 2D, 2 freeform directional, 3 freeform
cartesian, 4 direct, as Unity numbers them), the parameters it blends by, its children and thresholds or positions,
and for a leaf the clip (clip: an index of the controller’s clips, u32::MAX for none).
Fields§
§blend_type: i64m_BlendType.
event_id: u32m_BlendEventID: the CRC-32 of the parameter the node blends by.
event_y_id: u32m_BlendEventYID: the second parameter, of a 2D node.
children: Vec<u32>m_ChildIndices: the children’s indices in the tree’s nodes.
thresholds: Vec<f32>m_ChildThresholdArray of the 1D data.
positions: Vec<[f32; 2]>m_ChildPositionArray of the 2D data.
magnitudes: Vec<f32>m_ChildMagnitudeArray of the 2D data.
pair_vectors: Vec<[f32; 2]>m_ChildPairVectorArray of the 2D data.
pair_avg_mag_inv: Vec<f32>m_ChildPairAvgMagInvArray of the 2D data.
neighbors: Vec<Vec<u32>>m_ChildNeighborListArray: per child the indices of its neighbours in the 2D tree.
direct_events: Vec<u32>m_ChildBlendEventIDArray of the direct data: the CRC-32 of each child’s parameter.
normalized_blend_values: boolm_NormalizedBlendValues of the direct data.
clip: u32m_ClipID.
duration: f32m_Duration.
cycle_offset: f32m_CycleOffset.
mirror: boolm_Mirror.