public static SearchResult Create(SerializedProperty p) { Component component = p.serializedObject.targetObject as Component; return(new SearchResult { iid = component.GetInstanceID(), path = string.Concat(new string[] { TnTransformUtil.GetHierarchyFullPath(component.gameObject), "/<", component.GetType().Name, ">/[", TnEditorBridge.GetDisplayName(p), "]" }) }); }
private void InitThemeColors() { this.m_themeColors = new TnThemeColorMgr(); TnThemeColor.useProColor = TnEditorBridge.IsUnityProSkin(); TnThemeColor tnThemeColor = new TnThemeColor(); tnThemeColor.freeColor = new Color32(216, 216, 216, 255); tnThemeColor.proColor = new Color32(60, 60, 60, 255); this.m_themeColors.Add("LightLine", tnThemeColor); tnThemeColor = new TnThemeColor(); tnThemeColor.freeColor = new Color32(222, 222, 222, 255); tnThemeColor.proColor = new Color32(55, 55, 55, 255); this.m_themeColors.Add("DarkLine", tnThemeColor); tnThemeColor = new TnThemeColor(); tnThemeColor.freeColor = new Color32(62, 125, 231, 255); tnThemeColor.proColor = new Color32(62, 95, 150, 255); this.m_themeColors.Add("FocusedLine", tnThemeColor); }