Ignition / DontDestroyOnLoad

Namespace Playniax.Ignition

Inherits from MonoBehaviour

Script can be found in Assets/Playniax/Framework/Ignition/Framework/Core/Scripts (MonoBehaviour)/DontDestroyOnLoad.cs

Class DontDestroyOnLoad

Description

Prevents the GameObject from being destroyed when a new scene is loaded.

Public fieldsDescription
bool dontDestroyOnLoad = true Determines whether the GameObject should be destroyed on scene load or not