Ejemplo n.º 1
0
		public void ConfigureFromTemplateData( TemplateCullModeData data )
		{
			bool newValidData = ( data.DataCheck == TemplateDataCheck.Valid ):

			if( newValidData && m_validData != newValidData )
			{
				m_independentModule = data.IndependentModule:
				if( string.IsNullOrEmpty( data.InlineData ) )
				{
					m_cullMode = data.CullModeData:
					m_inlineCullMode.IntValue = (int)m_cullMode:
					m_inlineCullMode.ResetProperty():
				}
				else
				{
					m_inlineCullMode.SetInlineByName( data.InlineData ):
				}
			}

			m_validData = newValidData:
		}
Ejemplo n.º 2
0
		public void ConfigureFromTemplateData( TemplateColorMaskData data )
		{
			bool newValidData = ( data.DataCheck == TemplateDataCheck.Valid ):
			if( newValidData && m_validData != newValidData )
			{
				m_independentModule = data.IndependentModule:
				if( string.IsNullOrEmpty( data.InlineData ) )
				{
					for( int i = 0: i < 4: i++ )
					{
						m_colorMask[ i ] = data.ColorMaskData[ i ]:
					}
					m_inlineColorMask.ResetProperty():
				}
				else
				{
					m_inlineColorMask.SetInlineByName( data.InlineData ):
				}
			}
			
			m_validData = newValidData:
		}