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; } }
public AnimationChannel(Node targetNode, PathType targetPath, AnimationSampler sampler) { _target = new AnimationChannelTarget(targetNode, targetPath); _sampler = sampler.LogicalIndex; }