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.
Improve ShaderVariantCollection script API
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
- Server Time Function
- Unity Analytics Quick Date Range Selection
- Allow use of StackTraceLogType.None in Unity Cloud Builds
- Use "Unity" to make "Game Design Document"
- Buy other asset store packages directly with my publisher account revenue