Download

Platform specific material

Hi,
is possible to create platform specific material?
I want to change some nodes in Material depends on platform (iOS and Android). For example: for Android use “RadialGradientExponential” and for iOS instead use “DepthFade”. Is it possible?

Thank you.

You can set the material in C++ with UPrimitiveComponent::SetMaterial, and set the materials plattform-specific with #if PLATFORM_ANDROID macros.