From 2293bd5fe0f683a0aef93c57d0c09326fa354340 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Perrier Date: Thu, 20 May 2021 17:17:53 +0200 Subject: [PATCH] Expose Simulation.RequestStartPlay() to cpp. --- Source/Editor/Editor.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/Editor/Editor.cs b/Source/Editor/Editor.cs index 9a9500b7b..811599d9c 100644 --- a/Source/Editor/Editor.cs +++ b/Source/Editor/Editor.cs @@ -1307,6 +1307,11 @@ namespace FlaxEditor AnimGraphDebugFlow?.Invoke(debugFlow); } + internal static void Internal_RequestStartPlay() + { + Instance.Simulation.RequestStartPlay(); + } + [MethodImpl(MethodImplOptions.InternalCall)] internal static extern int Internal_ReadOutputLogs(string[] outMessages, byte[] outLogTypes, long[] outLogTimes);