Search Feedback

39
votes

Improve ShaderVariantCollection script API

Scripting

-

-

I was looking into programmatically modifying ShaderVariantCollections to ensure that keywords needed on mobile VR targets were present in collections gathered in the Editor, but there is currently no API for iterating over the contents. I can only add variants, or remove variants I specify explicitly if they exist in the collection. I would like to, for example, programatically add a new variant for each existing variant, adding the STEREO_MULTIVIEW_ON keyword.

Your opinion counts

Help us make things better. Share your great idea for improving Unity or vote for other people’s.

Log in to post a new idea

Categories

All

(9110)

2D

(224)

Ads

(40)

AI & Navigation

(68)

Analytics

(96)

Animation

(309)

Asset Store

(229)

Assets

(493)

Audio

(158)

Cloud Build

(95)

Collaborate

(32)

Docs & Tutorials

(198)

Editor

(2102)

Everyplay

(13)

Game Performance Reporting

(13)

General

(819)

Graphics

(768)

GUI

(365)

Input

(146)

Licensing

(75)

Networking

(158)

Physics

(343)

Platforms

(405)

Profiling & Optimization

(69)

Runtime

(162)

Scripting

(1022)

Terrain

(150)

WebGL

(131)