public static string GetNicePropertyGroupDisplayName(System.Type animatableObjectType, string propertyGroupName) { if (AnimationWindowUtility.ShouldPrefixWithTypeName(animatableObjectType, propertyGroupName)) { return(ObjectNames.NicifyVariableName(animatableObjectType.Name) + "." + AnimationWindowUtility.NicifyPropertyGroupName(animatableObjectType, propertyGroupName)); } return(AnimationWindowUtility.NicifyPropertyGroupName(animatableObjectType, propertyGroupName)); }
static string GroupName(EditorCurveBinding binding) { string property = AnimationWindowUtility.NicifyPropertyGroupName(binding.type, binding.propertyName); if (!string.IsNullOrEmpty(binding.path)) { property = binding.path + " : " + property; } return(property); }
public static string GetNicePropertyGroupDisplayName(Type animatableObjectType, string propertyGroupName) { string result; if (AnimationWindowUtility.ShouldPrefixWithTypeName(animatableObjectType, propertyGroupName)) { result = ObjectNames.NicifyVariableName(animatableObjectType.Name) + "." + AnimationWindowUtility.NicifyPropertyGroupName(animatableObjectType, propertyGroupName); } else { result = AnimationWindowUtility.NicifyPropertyGroupName(animatableObjectType, propertyGroupName); } return(result); }
public static string GroupName(EditorCurveBinding binding) { string property = AnimationWindowUtility.NicifyPropertyGroupName(binding.type, binding.propertyName); if (!string.IsNullOrEmpty(binding.path)) { property = binding.path + " : " + property; } int lastArrayIdx = property.LastIndexOf("Array."); if (lastArrayIdx != -1) { property = property.Substring(0, lastArrayIdx - 1); } return(property); }
public AddCurvesPopupPropertyNode(TreeViewItem parent, EditorCurveBinding[] curveBindings) : base(curveBindings[0].GetHashCode(), parent.depth + 1, parent, AnimationWindowUtility.NicifyPropertyGroupName(curveBindings[0].type, AnimationWindowUtility.GetPropertyGroupName(curveBindings[0].propertyName))) { this.curveBindings = curveBindings; }