public void AddClipCurveData(Component component, string name, bool isProperty, Type type) { MemberClipCurveData data = new MemberClipCurveData(); data.Type = component.GetType().Name; data.PropertyName = name; data.IsProperty = isProperty; data.PropertyType = UnityPropertyTypeInfo.GetMappedType(type); initializeClipCurves(data, component); curveData.Add(data); }
public void AddClipCurveData(Component component, string name, bool isProperty, Type type) { #if PROFILE_FILE Profiler.BeginSample("CinemaClipCurve.AddClipCurveData"); #endif // PROFILE_FILE MemberClipCurveData data = new MemberClipCurveData(); data.Type = component.GetType().Name; data.PropertyName = name; data.IsProperty = isProperty; data.PropertyType = UnityPropertyTypeInfo.GetMappedType(type); initializeClipCurves(data, component); curveData.Add(data); #if PROFILE_FILE Profiler.EndSample(); #endif // PROFILE_FILE }
public void AddClipCurveData(Component component, string name, bool isProperty, Type type) { MemberClipCurveData data = new MemberClipCurveData(); data.Type = component.GetType().Name; data.PropertyName = name; data.IsProperty = isProperty; data.PropertyType = UnityPropertyTypeInfo.GetMappedType(type); if (initializeClipCurves(data, component)) { curveData.Add(data); } else { Debug.LogError("Could not initialize curve clip, invalid initial values."); } }