Navigation
API > API/Runtime > API/Runtime/NNE > API/Runtime/NNE/UNNEModelData
Description
Get the cached (editor) or cooked (game) optimized model data for a given runtime.
This function is used by runtimes when creating a model. In editor, the function will create the optimized model data with the passed runtime in case it has not been cached in the DCC yet. In game, the cooked data is accessed. The returned model data is aligned in memory as requested by the runtime.
| Name | GetModelData |
| Type | function |
| Header File | /Engine/Source/Runtime/NNE/Public/NNEModelData.h |
| Include Path | #include "NNEModelData.h" |
| Source | /Engine/Source/Runtime/NNE/Private/NNEModelData.cpp |
TSharedPtr< UE::NNE::FSharedModelData > GetModelData
(
const FString & RuntimeName
)
The optimized and runtime specific model data or an invalid TSharedPtr in case of failure.
Parameters
| Name | Remarks |
|---|---|
| RuntimeName | The name of the runtime for which the data should be returned. |