Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FEmitter
Description
Retrieves the value from the given input, if present. A null reference otherwise. Note: it does not report an error if the value is missing. If the expression is marked MIR_OnDemandInputRequest and the dependency hasn't been built yet, sets Pending and returns poison, use UE_MIR_CHECKPOINT to defer. It is safe to pass returned value to other Emitter functions as argument even if null. For instance, the following is safe and idiomatic
FValueRef Value = Emitter.CheckIsArithmetic(Emitter.TryInput(&A)); UE_MIR_CHECKPOINT(Emitter); if (Value) { /* handle case when value is provided */ }
Keep in mind that a reference can be null (its Value is null) or invalid (which means that it's null OR poison).
| Name | TryInput |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/MaterialIREmitter.h |
| Include Path | #include "Materials/MaterialIREmitter.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Materials/MaterialIREmitter.cpp |
FValueRef TryInput
(
const FExpressionInput * Input
)