Esempio n. 1
0
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();
            EditorGUILayout.PropertyField(serializedObject.FindProperty("fonts"), true);
            EditorGUI.BeginChangeCheck();
            UIWidgetsPanel panel = (UIWidgetsPanel)target;

            serializedObject.ApplyModifiedProperties();
        }
Esempio n. 2
0
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();
            EditorGUILayout.PropertyField(serializedObject.FindProperty("fonts"), true);
            EditorGUILayout.PropertyField(serializedObject.FindProperty("devicePixelRatioEditorOnlyOverride"), new GUIContent(text: "[EditorOnly]DPR Override"), false);
            EditorGUI.BeginChangeCheck();
            UIWidgetsPanel panel = (UIWidgetsPanel)target;

            serializedObject.ApplyModifiedProperties();
        }
Esempio n. 3
0
 void OnEnable()
 {
     rawImage = GetComponent <UIWidgetsPanel>();
 }