protected override void ReadFromImpl(object obj) { base.ReadFromImpl(obj); Rigidbody uo = (Rigidbody)obj; velocity = uo.velocity; angularVelocity = uo.angularVelocity; drag = uo.drag; angularDrag = uo.angularDrag; mass = uo.mass; useGravity = uo.useGravity; maxDepenetrationVelocity = uo.maxDepenetrationVelocity; isKinematic = uo.isKinematic; freezeRotation = uo.freezeRotation; constraints = uo.constraints; collisionDetectionMode = uo.collisionDetectionMode; centerOfMass = uo.centerOfMass; detectCollisions = uo.detectCollisions; position = uo.position; rotation = uo.rotation; interpolation = uo.interpolation; solverIterations = uo.solverIterations; sleepThreshold = uo.sleepThreshold; maxAngularVelocity = uo.maxAngularVelocity; solverVelocityIterations = uo.solverVelocityIterations; }
protected override void ReadFromImpl(object obj) { base.ReadFromImpl(obj); SkeletonBone uo = (SkeletonBone)obj; name = uo.name; position = uo.position; rotation = uo.rotation; scale = uo.scale; }
protected override void ReadFromImpl(object obj) { base.ReadFromImpl(obj); Animator uo = (Animator)obj; rootPosition = uo.rootPosition; rootRotation = uo.rootRotation; applyRootMotion = uo.applyRootMotion; updateMode = uo.updateMode; stabilizeFeet = uo.stabilizeFeet; feetPivotActive = uo.feetPivotActive; speed = uo.speed; cullingMode = uo.cullingMode; recorderStartTime = uo.recorderStartTime; recorderStopTime = uo.recorderStopTime; runtimeAnimatorController = ToID(uo.runtimeAnimatorController); layersAffectMassCenter = uo.layersAffectMassCenter; logWarnings = uo.logWarnings; fireEvents = uo.fireEvents; keepAnimatorControllerStateOnDisable = uo.keepAnimatorControllerStateOnDisable; }