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