FProxyMaterialCompiler::ValidCast

Casts the passed in code to DestType, or generates a compile error if the cast is not valid.

Windows
MacOS
Linux

Override Hierarchy

FMaterialCompiler::ValidCast()

FProxyMaterialCompiler::ValidCast()

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/MaterialCompiler.h

Include

#include "MaterialCompiler.h"

Syntax

virtual int32 ValidCast
(
    int32 Code,
    EMaterialValueType DestType
)

Remarks

Casts the passed in code to DestType, or generates a compile error if the cast is not valid. This will truncate a type (float4 -> float3) but not add components (float2 -> float3), however a float1 can be cast to any float type by replication.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback