Esempio n. 1
0
        void UpdateCanvasShaderChannels()
        {
            Canvas canvas = dropdown.GetComponentInChildren <Canvas>();

            if (canvas == null)
            {
                return;
            }
            canvas.additionalShaderChannels |= AdditionalCanvasShaderChannels.TexCoord1;
            canvas.additionalShaderChannels |= AdditionalCanvasShaderChannels.TexCoord2;
            canvas.additionalShaderChannels |= AdditionalCanvasShaderChannels.TexCoord3;
        }