Ejemplo n.º 1
0
            private void SetupTags(SerializedProperty serializedProperty)
            {
                var tagsProp = serializedProperty.FindPropertyRelative("m_Tags.tags");

                tags = new List <ShaderTagInfo>(tagsProp.arraySize);
                for (int i = 0; i < tagsProp.arraySize; ++i)
                {
                    var tagInfo = new ShaderTagInfo(serializedProperty.GetArrayElementAtIndex(i));
                    tags.Add(tagInfo);
                }
            }
Ejemplo n.º 2
0
            public ShaderState(SerializedProperty serializedProperty)
            {
                this.name = serializedProperty.FindPropertyRelative("m_Name").stringValue;
                var tagsProp = serializedProperty.FindPropertyRelative("m_Tags.tags");

                tags = new List <ShaderTagInfo>(tagsProp.arraySize);

                for (int i = 0; i < tagsProp.arraySize; ++i)
                {
                    var tagInfo = new ShaderTagInfo(tagsProp.GetArrayElementAtIndex(i));
                    tags.Add(tagInfo);
                }
            }