79326649

Date: 2025-01-03 13:58:09
Score: 4
Natty:
Report link

enter image description here

    void Awake()
    {
        if (Instance)
        {
            DestroyImmediate(gameObject);
        }
        else
        {
            Instance = this;
            DontDestroyOnLoad(gameObject);
        }
    }

i have same issue i have made a ui button with name of back now, my wish to destroy every object when i click on back button

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Me too answer (2.5): i have same issue
  • Low reputation (1):
Posted by: Asif Nawaz