Navigation
Unreal Engine C++ API Reference > Runtime > Engine > FMaterialCompiler
- FMaterialCompiler::ValidCast()
- FProxyMaterialCompiler::ValidCast()
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Public/MaterialCompiler.h |
Include | #include "MaterialCompiler.h" |
int32 ValidCast
&40;
int32 Code,
EMaterialValueType DestType
&41;
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.