public void Read(AssetReader reader) { StateMachineIndex = (int)reader.ReadUInt32(); StateMachineMotionSetIndex = (int)reader.ReadUInt32(); BodyMask.Read(reader); SkeletonMask.Read(reader); Binding = reader.ReadUInt32(); LayerBlendingMode = (AnimatorLayerBlendingMode)reader.ReadInt32(); if (IsReadDefaultWeight(reader.Version)) { DefaultWeight = reader.ReadSingle(); } IKPass = reader.ReadBoolean(); if (IsReadSyncedLayerAffectsTiming(reader.Version)) { SyncedLayerAffectsTiming = reader.ReadBoolean(); } reader.AlignStream(AlignType.Align4); }
public void Read(AssetStream stream) { StateMachineIndex = stream.ReadUInt32(); StateMachineMotionSetIndex = stream.ReadUInt32(); BodyMask.Read(stream); SkeletonMask.Read(stream); Binding = stream.ReadUInt32(); LayerBlendingMode = stream.ReadInt32(); if (IsReadDefaultWeight(stream.Version)) { DefaultWeight = stream.ReadSingle(); } IKPass = stream.ReadBoolean(); if (IsReadSyncedLayerAffectsTiming(stream.Version)) { SyncedLayerAffectsTiming = stream.ReadBoolean(); } stream.AlignStream(AlignType.Align4); }