public override void Read(AssetReader reader) { base.Read(reader); Avatar.Read(reader); Controller.Read(reader); CullingMode = (AnimatorCullingMode)reader.ReadInt32(); if (IsReadUpdateMode(reader.Version)) { UpdateMode = (AnimatorUpdateMode)reader.ReadInt32(); } ApplyRootMotion = reader.ReadBoolean(); if (IsReadAnimatePhisics(reader.Version)) { AnimatePhisics = reader.ReadBoolean(); } if (IsReadLinearVelocityBlending(reader.Version)) { LinearVelocityBlending = reader.ReadBoolean(); } if (IsAlignMiddle(reader.Version)) { reader.AlignStream(AlignType.Align4); } #if UNIVERSAL if (IsReadWarningMessage(reader.Version, reader.Flags)) { WarningMessage = reader.ReadString(); } #endif if (IsReadHasTransformHierarchy(reader.Version)) { HasTransformHierarchy = reader.ReadBoolean(); } if (IsReadAllowConstantOptimization(reader.Version)) { AllowConstantClipSamplingOptimization = reader.ReadBoolean(); } if (IsReadKeepAnimatorControllerStateOnDisable(reader.Version)) { KeepAnimatorControllerStateOnDisable = reader.ReadBoolean(); } if (IsAlignEnd(reader.Version)) { reader.AlignStream(AlignType.Align4); } }
public override void Read(AssetReader reader) { base.Read(reader); Avatar.Read(reader); Controller.Read(reader); CullingMode = reader.ReadInt32(); if (IsReadUpdateMode(reader.Version)) { UpdateMode = reader.ReadInt32(); } ApplyRootMotion = reader.ReadBoolean(); if (IsReadAnimatePhisics(reader.Version)) { AnimatePhisics = reader.ReadBoolean(); } if (IsReadLinearVelocityBlending(reader.Version)) { LinearVelocityBlending = reader.ReadBoolean(); } if (IsAlignMiddle(reader.Version)) { reader.AlignStream(AlignType.Align4); } if (IsReadHasTransformHierarchy(reader.Version)) { HasTransformHierarchy = reader.ReadBoolean(); } if (IsReadAllowConstantOptimization(reader.Version)) { AllowConstantClipSamplingOptimization = reader.ReadBoolean(); } if (IsAlignEnd(reader.Version)) { reader.AlignStream(AlignType.Align4); } }