예제 #1
0
 public void Read(EndianStream stream)
 {
     StateMachineIndex          = stream.ReadUInt32();
     StateMachineMotionSetIndex = stream.ReadUInt32();
     BodyMask.Read(stream);
     SkeletonMask.Read(stream);
     Binding                  = stream.ReadUInt32();
     LayerBlendingMode        = stream.ReadInt32();
     DefaultWeight            = stream.ReadSingle();
     IKPass                   = stream.ReadBoolean();
     SyncedLayerAffectsTiming = stream.ReadBoolean();
     stream.AlignStream(AlignType.Align4);
 }
예제 #2
0
        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 (HasDefaultWeight(reader.Version))
            {
                DefaultWeight = reader.ReadSingle();
            }

            IKPass = reader.ReadBoolean();
            if (HasSyncedLayerAffectsTiming(reader.Version))
            {
                SyncedLayerAffectsTiming = reader.ReadBoolean();
            }
            reader.AlignStream();
        }
예제 #3
0
        public void Read(AssetStream stream)
        {
            StateMachineIndex          = (int)stream.ReadUInt32();
            StateMachineMotionSetIndex = (int)stream.ReadUInt32();
            BodyMask.Read(stream);
            SkeletonMask.Read(stream);
            Binding           = stream.ReadUInt32();
            LayerBlendingMode = (AnimatorLayerBlendingMode)stream.ReadInt32();
            if (IsReadDefaultWeight(stream.Version))
            {
                DefaultWeight = stream.ReadSingle();
            }

            IKPass = stream.ReadBoolean();
            if (IsReadSyncedLayerAffectsTiming(stream.Version))
            {
                SyncedLayerAffectsTiming = stream.ReadBoolean();
            }
            stream.AlignStream(AlignType.Align4);
        }