Esempio n. 1
0
 private void ShowGUI()
 {
     serializedObject.Update();
     if (postProcessesListHandler == null)
     {
         postProcessesListHandler = new ReorderableListForPostProcesses(getPostProcesses(), myTarget);
     }
     getPostProcesses().DoLayoutList();
     serializedObject.ApplyModifiedProperties();
 }
Esempio n. 2
0
        /// <summary>
        /// Shows <see cref="ReorderableList"/> of <see cref="GrassPostProcessProfile.postProcesses"/>
        /// </summary>
        /// <param name="myTarget">Target <see cref="GrassPostProcessProfile"/> object</param>
        /// <param name="property"><see cref="GrassPostProcessProfile"/> property</param>
        private void PostProcessesGUI(GrassPostProcessProfile myTarget, SerializedProperty property)
        {
            SerializedObject profileSerialized = new SerializedObject(myTarget);

            profileSerialized.Update();
            if (postProcessesListHandler == null)
            {
                postProcessesListHandler = new ReorderableListForPostProcesses(GetPostProcesses(myTarget, profileSerialized), myTarget);
            }
            GetPostProcesses(myTarget, profileSerialized).DoLayoutList();
            profileSerialized.ApplyModifiedProperties();
        }