コード例 #1
0
ファイル: gltf.g.cs プロジェクト: promontis/glTF2Sharp
        protected override void DeserializeProperty(JsonReader reader, string property)
        {
            switch (property)
            {
            case "sampler": _sampler = DeserializeValue <Int32>(reader); break;

            case "target": _target = DeserializeValue <AnimationChannelTarget>(reader); break;

            default: base.DeserializeProperty(reader, property); break;
            }
        }
コード例 #2
0
 public AnimationChannel(Node targetNode, PathType targetPath, AnimationSampler sampler)
 {
     _target  = new AnimationChannelTarget(targetNode, targetPath);
     _sampler = sampler.LogicalIndex;
 }