I save my asset but when I reload editor than my data is not saved. I need to save these nodes for runtime use.
void FluidNarratorGraphEditor::SaveAsset_Execute()
{
if (Graph->IsAsset())
UFluidNarratorEditorUtilities::SaveGraphAsset(Graph);
TArray<UPackage*> PackagesToSave;
PackagesToSave.Add(Graph->GetPackage());
FEditorFileUtils::PromptForCheckoutAndSave(PackagesToSave,true,false);
}
UCLASS(Blueprintable)
class FLUIDNARRATORRUNTIME_API UFluidNarratorGraph : public UObject
{
GENERATED_BODY()
public:
UPROPERTY(EditAnywhere)
TArray<UFluidNarratorGraphNode*> Nodes;
#if WITH_EDITORONLY_DATA
UPROPERTY()
class UEdGraph* EdGraph;
#endif
};
When I use my save code
When I relaunch the editor.