public Clip(EndianBinaryReader reader, int[] version) { m_StreamedClip = new StreamedClip(reader); m_DenseClip = new DenseClip(reader); if (version[0] > 4 || (version[0] == 4 && version[1] >= 3)) //4.3 and up { m_ConstantClip = new ConstantClip(reader); } m_Binding = new ValueArrayConstant(reader, version); }
public Clip(ObjectReader reader) { var version = reader.version; m_StreamedClip = new StreamedClip(reader); m_DenseClip = new DenseClip(reader); if (version[0] > 4 || (version[0] == 4 && version[1] >= 3)) //4.3 and up { m_ConstantClip = new ConstantClip(reader); } m_Binding = new ValueArrayConstant(reader); }
public BlendTreeConstant(ObjectReader reader) { var version = reader.version; int numNodes = reader.ReadInt32(); m_NodeArray = new BlendTreeNodeConstant[numNodes]; for (int i = 0; i < numNodes; i++) { m_NodeArray[i] = new BlendTreeNodeConstant(reader); } if (version[0] < 4 || (version[0] == 4 && version[1] < 5)) //4.5 down { m_BlendEventArrayConstant = new ValueArrayConstant(reader); } }
public ControllerConstant(ObjectReader reader) { int numLayers = reader.ReadInt32(); m_LayerArray = new LayerConstant[numLayers]; for (int i = 0; i < numLayers; i++) { m_LayerArray[i] = new LayerConstant(reader); } int numStates = reader.ReadInt32(); m_StateMachineArray = new StateMachineConstant[numStates]; for (int i = 0; i < numStates; i++) { m_StateMachineArray[i] = new StateMachineConstant(reader); } m_Values = new ValueArrayConstant(reader); m_DefaultValues = new ValueArray(reader); }
public ControllerConstant(EndianBinaryReader reader, int[] version) { int numLayers = reader.ReadInt32(); m_LayerArray = new LayerConstant[numLayers]; for (int i = 0; i < numLayers; i++) { m_LayerArray[i] = new LayerConstant(reader, version); } int numStates = reader.ReadInt32(); m_StateMachineArray = new StateMachineConstant[numStates]; for (int i = 0; i < numStates; i++) { m_StateMachineArray[i] = new StateMachineConstant(reader, version); } m_Values = new ValueArrayConstant(reader, version); m_DefaultValues = new ValueArray(reader, version); }