Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

Change Procedural Material Loading Behavior Through Script

$
0
0
Is it possible to not only get the loading behavior of a Substance Material, but also change it through an editor script? I cant seem to figure it out right now. I would like to do something like this: ProceduralMaterial myProceduralMat = substanceAssets[sharedMaterialName]; myProceduralMat.loadingBehavior = ProceduralLoadingBehavior.BakeAndKeep; Is this a read only variable that can only be edited by clicking and editing the Substance in the editor? I would like to be able to edit all of the procedural materials in my project through an editor script and change the loading behavior there instead of manually changing every one individuality.

Viewing all articles
Browse latest Browse all 171066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>