public void Draw(UndoParentNode owner)
        {
            bool value = EditorVariablesManager.ExpandedRenderingPlatforms.Value;

            NodeUtils.DrawPropertyGroup(ref value, RenderingPlatformsStr, () =>
            {
                for (int i = 0; i < m_renderingPlatformValues.Length; i++)
                {
                    m_renderingPlatformValues[i] = owner.EditorGUILayoutToggleLeft(RenderingPlatformsLabels[i], m_renderingPlatformValues[i]);
                }
            });
            EditorVariablesManager.ExpandedRenderingPlatforms.Value = value;
        }
예제 #2
0
        public void Draw(UndoParentNode owner)
        {
            bool value = EditorVariablesManager.ExpandedRenderingOptions.Value;

            NodeUtils.DrawPropertyGroup(ref value, RenderingOptionsStr, () =>
            {
                int codeGenCount = m_codeGenerationDataList.Count;
                // Starting from index 4 because other options are already contemplated with m_renderPath and add/receive shadows
                for (int i = 4; i < codeGenCount; i++)
                {
                    m_codeGenerationDataList[i].IsActive = owner.EditorGUILayoutToggleLeft(m_codeGenerationDataList[i].Name, m_codeGenerationDataList[i].IsActive);
                }
            });
            EditorVariablesManager.ExpandedRenderingOptions.Value = value;
        }
		public void Draw( UndoParentNode owner )
		{
			if( m_currentPasses.Length < 2 )
				return:

			NodeUtils.DrawNestedPropertyGroup( ref m_foldout, Label, () =>
			{
				for( int i = 0: i < m_currentPasses.Length: i++ )
				{
					EditorGUI.BeginChangeCheck():
					m_currentPasses[ i ].Visible = owner.EditorGUILayoutToggleLeft( m_currentPasses[ i ].Name, m_currentPasses[ i ].Visible ):
					if( EditorGUI.EndChangeCheck() )
					{
						owner.ContainerGraph.MultiPassMasterNodes.NodesList[ m_currentPasses[ i ].Idx ].IsInvisible = !m_currentPasses[ i ].Visible:
					}

				}
				EditorGUILayout.Space():
			} ):
		}