• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges

Singleton

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

rickymanalo asked

Singleton field getter/setter doesn't work

Jun 2, '22 getcomponent·singleton

0 Replies

0 Votes

avatar image

alessio1918m commented

Singleton reference suddenly becomes null, why?

Jun 1, '22 in Help Room

1 Reply

0 Votes

avatar image

Pangamini commented

Singleton Effectiveness

Apr 24, '22 objects·gameobjects·singleton

0 Replies

0 Votes

avatar image

goisak100 published

I didn't assign a value to the instance in singleton, but it is assigned automatically.

Mar 25, '22 in Help Room

0 Replies

0 Votes

avatar image

Whynote edited

Is it a good practice to work with Tags to access instances from different scripts or is it necessary to make an instance manager script?

Mar 12, '22 tags·drag-and-drop·singleton·instantiation·practices

2 Replies

0 Votes

avatar image

Spip5 edited

Static singleton is (not nullref -empty-) but assigned to "null" in the other Scenes

Feb 24, '22 static·null·singleton

2 Replies

0 Votes

avatar image

Hellium commented

Understanding ScriptableSingleton

Feb 18, '22 scriptableobject·singleton

0 Replies

0 Votes

avatar image

andrew-lukasik edited

Field value changes after SceneManager.LoadScene been called

Jan 20, '22 in Help Room

0 Replies

0 Votes

avatar image

rh_galaxy answered

How to create a main menu with singleton pattern?

Jan 16, '22 playerprefs·scene-loading·singleton·awake

2 Replies

0 Votes

avatar image

CodesCove commented

How to use Unity Events and Unity Actions [Subs&UnSubs]

Dec 13, '21 in Help Room

0 Replies

0 Votes

avatar image

MilitaryG commented

Adding a singleton script to 2 objects makes one of them dissapear.

Dec 3, '21 in Help Room

0 Replies

0 Votes

avatar image

tomosbach commented

Start()/Awake() being called twice, after already checking for dupes!

Aug 2, '21 in Help Room

4 Replies

0 Votes

avatar image

RedHillbilly edited

Persistence of ScriptableObjects between Scenes?

Jul 29, '21 scriptableobject·scene-switching·singleton

2 Replies

0 Votes

avatar image

adasroky answered

how to use a random number generated in one scene into another

May 30, '21 c#·unity 2d·singleton

1 Reply

0 Votes

avatar image

stephen_ho asked

Using singleton or UnityEvent

May 7, '21 event·singleton

0 Replies

0 Votes

avatar image

The-Peaceful answered

Read Singleton across scenes?

May 5, '21 unity 2d·singleton

1 Reply

0 Votes

avatar image

emsaigon12 published

I want to create a bookmark function using the toggle button,I want to develop the bookmark function

May 3, '21 getcomponent·toggle·singleton

0 Replies

0 Votes

avatar image

Fivii edited

Charge object on all scenes

Apr 27, '21 in Help Room

0 Replies

0 Votes

avatar image

XoetziX commented

Setting a reference to a Singleton in the editor not possible?

Apr 19, '21 editor·reference·singleton

1 Reply

0 Votes

avatar image

DryreL answered

Trying to make "Gallery Unlocker" script with Singleton

Mar 28, '21 in Help Room

1 Reply

0 Votes

avatar image

JTAGames commented

DontDestroyOnLoad Duplicating Objects When Scene Reloaded

Mar 26, '21 c#·dontdestroyonload·singleton

1 Reply

0 Votes

avatar image

BillyBobBeavis edited

Preventing my game object from multiplying due to DontDestroyOnLoad()

Mar 7, '21 c#·start·dontdestroyonload·singleton·game object

2 Replies

4 Votes

avatar image

DissonanceMask asked

Button wont run sceneloader coroutine-calling functions, but can run it's other functions

Feb 20, '21 scene-loading·button trigger events·singleton·inactive

0 Replies

0 Votes

avatar image

Llama_w_2Ls commented

Access Inventory from player

Feb 5, '21 c#·scene·inventory·singleton·equipment

1 Reply

0 Votes

avatar image

logicandchaos answered

which singleton design pattern should be used ?

Jan 14, '21 singleton·thread

3 Replies

0 Votes

avatar image

lcplrice answered

Trouble with DestroyOnLoad,Game won't start after player dies once

Dec 16, '20 destroy·singleton

1 Reply

0 Votes

avatar image

halken commented

How to ensure singletons are initialized in Edit Mode

Dec 1, '20 in Help Room

1 Reply

4 Votes

avatar image

ry511 published

Project Tiny no DisplayInfo Singleton

Nov 30, '20 component·singleton·dots

0 Replies

0 Votes

avatar image

stephen_gregory commented

MonoBehaviour.OnDestroy() how it works/ how to use it? Closed

Nov 26, '20 singleton·generics·ondestroy

1 Reply

0 Votes

avatar image

hossenshovon1 answered

MonoBehaviour script duplicates when loading same scene multiple times

Nov 25, '20 in Help Room

1 Reply

0 Votes

  • 1
  • 2
  • 3
  • 4
  • 5
  • ›
  • »

Related Topics

c# static dontdestroyonload scripting problem monobehaviour nullreferenceexception gameobject instance manager scene pattern list coroutine destroy scene-loading scene-switching design-patterns reference music generics javascript scriptableobject unity 2d event persistence


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges