protected override void DeserializeProperty(string jsonPropertyName, JsonReader reader) { switch (jsonPropertyName) { case "sampler": _sampler = DeserializePropertyValue <Int32>(reader); break; case "target": _target = DeserializePropertyValue <AnimationChannelTarget>(reader); break; default: base.DeserializeProperty(jsonPropertyName, reader); break; } }
internal AnimationChannel(Node targetNode, PropertyPath targetPath) { _target = new AnimationChannelTarget(targetNode, targetPath); _sampler = -1; }