Esempio n. 1
0
        private void OnEnable()
        {
            if (BlendModeEffect)
            {
                BlendModeEffect.InitializeComponentExtension();
                var shaderPropertiesProperty = serializedObject.FindProperty("componentExtensionState").FindPropertyRelative("shaderProperties");
                shaderPropertiesList = new ShaderPropertiesList(serializedObject, shaderPropertiesProperty, BlendModeEffect.GetComponentExtension <ComponentExtension>());
            }

            shaderFamilyProperty         = serializedObject.FindProperty("shaderFamily");
            blendModeProperty            = serializedObject.FindProperty("blendMode");
            renderModeProperty           = serializedObject.FindProperty("renderMode");
            overlayColorProperty         = serializedObject.FindProperty("overlayColor");
            overlayTextureProperty       = serializedObject.FindProperty("overlayTexture");
            overlayTextureOffsetProperty = serializedObject.FindProperty("overlayTextureOffset");
            overlayTextureScaleProperty  = serializedObject.FindProperty("overlayTextureScale");
            maskModeProperty             = serializedObject.FindProperty("maskMode");
            maskBehaviourProperty        = serializedObject.FindProperty("maskBehaviour");
            framebufferEnabledProperty   = serializedObject.FindProperty("framebufferEnabled");
            unifiedGrabEnabledProperty   = serializedObject.FindProperty("unifiedGrabEnabled");
            shareMaterialProperty        = serializedObject.FindProperty("shareMaterial");
        }