public IAnimationJob CreateJob(Animator animator) { IAnimationJobBinder binder = (IAnimationJobBinder)s_Binder; TJob job = (TJob)binder.Create(animator, m_Constraint.data, m_Constraint); // Bind constraint job weight property job.jobWeight = FloatProperty.BindCustom( animator, PropertyUtils.ConstructCustomPropertyName(m_Constraint, ConstraintProperties.s_Weight) ); return(job); }
public void UpdateJob(IAnimationJob job) { IAnimationJobBinder binder = (IAnimationJobBinder)s_Binder; binder.Update(job, m_Constraint.data); }