Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 159916

C# is a multi-paradigm, managed, strongly typed, garbage-collected, programming language created by Microsoft in conjunction with the .NET platform.

0 votes
0 answers
38 views

How to solve Unity Unexpected character

I am working on my project since morning , when i open my project later after work unity show me following error: Assets\Main\Script\SettingScript.cs(1,1): error CS1056: Unexpected character ' To so …
0 votes
2 answers
523 views

DontDestroyOnLoad only works for root GameObjects

I have this simple code, but it does not prevent the object it's attached to from being destroyed on load: void Start() { DontDestroyOnLoad(gameObject); Debug.Log(gameObject.scene.name); } I …
3 votes
Accepted

DontDestroyOnLoad only works for root GameObjects

Check your Hierarchy to see if the object is the top-level parent or a child of another object. If the game object is a child, the DontDestroyOnLoad() function will not work. In order to not destroy t …