Files
2025-11-30 08:35:03 +02:00

22 lines
466 B
C#

// SPDX-FileCopyrightText: 2023 Unity Technologies and the glTFast authors
// SPDX-License-Identifier: Apache-2.0
using System;
using UnityEngine;
namespace GLTFast
{
/// <summary>
/// Makes GameObject survive scene changes
/// </summary>
/// <seealso cref="UnityEngine.Object.DontDestroyOnLoad"/>
public class DontDestroyOnLoad : MonoBehaviour
{
void Awake()
{
DontDestroyOnLoad(gameObject);
}
}
}