USMAssetExporterJson¶
Module: SMAssetTools
Inherits from USMAssetExporter
Public Functions¶
| Name | |
|---|---|
| virtual EExportStatus | OnBeginExport(const FExportArgs & InExportArgs) override |
| virtual EExportStatus | OnExportCDO(const UObject * InCDO) override |
| virtual EExportStatus | OnExportNode(const UEdGraphNode * InGraphNode) override |
| virtual void | OnFinishExport(USMBlueprint * InBlueprint, EExportStatus InStatus) override |
| TSharedPtr< FJsonObject > | GetExportedJsonObject() const |
| EExportStatus | GraphNodeToJsonValue(const UEdGraphNode * InGraphNode, TSharedPtr< FJsonValueObject > & OutJsonValue) |
Protected Functions¶
| Name | |
|---|---|
| TSharedPtr< FJsonObject > | CreateJsonObject(const UObject * InObject) |
| TSharedPtr< FJsonValueObject > | CreateJsonValueObject(const UObject * InObject) |
| void | CleanupJsonObject(TSharedPtr< FJsonObject > JsonObject) |
| TSharedPtr< FJsonValue > | OnExportJsonProperty(FProperty * InProperty, const void * Value, const UObject * OwningObject) |
Protected Attributes¶
| Name | |
|---|---|
| TSharedPtr< FJsonObject > | RootJsonObject |
| TArray< TSharedPtr< FJsonValue > > | StateJsonArray |
| TArray< TSharedPtr< FJsonValue > > | TransitionJsonArray |
| TArray< TSharedPtr< FJsonValue > > | EntryJsonArray |
| TArray< TSharedPtr< FJsonValue > > | CommentJsonArray |
| FExportArgs | ExportArgs |
Public Functions Documentation¶
function OnBeginExport¶
function OnExportCDO¶
function OnExportNode¶
function OnFinishExport¶
function GetExportedJsonObject¶
Return the exported json object. Only complete during OnFinishExport.
function GraphNodeToJsonValue¶
static EExportStatus GraphNodeToJsonValue(
const UEdGraphNode * InGraphNode,
TSharedPtr< FJsonValueObject > & OutJsonValue
)
Convert a USMGraphNode_Base to a json object.
Protected Functions Documentation¶
function CreateJsonObject¶
function CreateJsonValueObject¶
function CleanupJsonObject¶
Remove any properties that aren't meant to be serialized.
function OnExportJsonProperty¶
static TSharedPtr< FJsonValue > OnExportJsonProperty(
FProperty * InProperty,
const void * Value,
const UObject * OwningObject
)
Called during json object export.