public static GUIContent GetRuntimeFsmLabelToFit(Skill fsm, float width, GUIStyle style) { string runtimeFsmLabel = Labels.GetRuntimeFsmLabel(fsm); float x = style.CalcSize(new GUIContent(runtimeFsmLabel)).x; if (x < width) { return(new GUIContent(runtimeFsmLabel, runtimeFsmLabel)); } return(new GUIContent(fsm.get_Name(), runtimeFsmLabel)); }
public static string GetRuntimeFsmLabel(Skill fsm) { return(Labels.GetRuntimeFsmLabel(fsm)); }