Ejemplo n.º 1
0
    public override void OnInspectorGUI()
    {
        ARColorProbe probe = (ARColorProbe)target;

        EditorGUILayout.PropertyField(serializedObject.FindProperty("readingHistorySize"), true);
        EditorGUILayout.PropertyField(serializedObject.FindProperty("averageColor"), true);
        EditorGUILayout.PropertyField(serializedObject.FindProperty("foundSampleColor"), true);
        EditorGUILayout.PropertyField(serializedObject.FindProperty("samples"), true);
        EditorGUILayout.PropertyField(serializedObject.FindProperty("drawPreview"), true);

        serializedObject.ApplyModifiedProperties();
    }
Ejemplo n.º 2
0
 void Awake()
 {
     colorProbe = this.transform.GetComponentInChildren <ARColorProbe>();
 }