-
Notifications
You must be signed in to change notification settings - Fork 44
Closed
Labels
Description
Thanks for making this great tool!
I am current stuck trying to access the StaticSwitchParameterValues on MaterialInstanceConstant objects.
It does seem to list bHasStaticPermutationResource which indicates that the object has data for static flags.
Below is a snippet from MaterialInstance.h from the UE5 source which talks about this boolean.
* Material resources used for rendering this material instance, in the case of static parameters being present.
* These will always be valid and non-null when bHasStaticPermutationResource is true,
* But only the entries affected by CacheResourceShadersForRendering will be valid for rendering.
* There need to be as many entries in this array as can be used simultaneously for rendering.
* For example the material instance needs to support being rendered at different quality levels and feature levels within the same process.
*/
TArray<FMaterialResource*> StaticPermutationMaterialResources;```
Reactions are currently unavailable
