Redigera

Dela via


UnityObjectExtensions.DontDestroyOnLoad(Object) Method

Definition

Enable Unity objects to skip "DontDestroyOnLoad" when editor isn't playing so test runner passes.

public:
[System::Runtime::CompilerServices::Extension]
 static void DontDestroyOnLoad(UnityEngine::Object ^ target);
public static void DontDestroyOnLoad (this UnityEngine.Object target);
static member DontDestroyOnLoad : UnityEngine.Object -> unit
<Extension()>
Public Sub DontDestroyOnLoad (target As Object)

Parameters

target
UnityEngine.Object

Applies to