Skip to main content
5 events
when toggle format what by license comment
Mar 12, 2020 at 2:44 vote accept EmperiumIce
Mar 11, 2020 at 11:38 comment added DMGregory Note that the reason you need quotation marks in code is to delineate the ends of the string literal. So if I want to print the text "Destroy(gameObject)", the compiler knows to treat the stuff in quotation marks as just literal text to print — and doesn't try to execute it as code to destroy my game object. When you're typing into an inspector, the field itself already delineates the string variable — so you don't need extra quotation marks to say "by the way, this is literal text, not programming code".
Mar 11, 2020 at 10:48 comment added doppelgreener Please use answers to provide your solution, rather than editing the answer into the question. I've moved this answer out of your question and into this answer you thankfully left. Now you can also mark it as accepted.
Mar 11, 2020 at 10:48 history edited doppelgreener CC BY-SA 4.0
added 664 characters in body
Mar 11, 2020 at 6:49 history answered EmperiumIce CC BY-SA 4.0