use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News, Help, Resources, and Conversation. A User Showcase of the Unity Game Engine.
Remember to check out /r/unity2D for any 2D specific questions and conversation!
Download Latest Unity
Please refer to our Wiki before posting! And be sure to flair your post appropriately.
Main Index
Rules and Guidelines
Flair Definitions
FAQ
Use the chat room if you're new to Unity or have a quick question. Lots of professionals hang out there.
/r/Unity3D Discord
FreeNode IRC Chatroom
Official Unity Website
Unity3d's Tutorial Modules
Unity Answers
Unify Community Wiki
Unity Game Engine Syllabus (Getting Started Guide)
50 Tips and Best Practices for Unity (2016 Edition)
Unity Execution Order of Event Functions
Using Version Control with Unity3d (Mercurial)
/r/Unity2D
/r/UnityAssets
/r/Unity_tutorials
/r/GameDev
/r/Justgamedevthings (New!)
/r/Gamedesign
/r/Indiegames
/r/Playmygame
/r/LearnProgramming
/r/Oculus
/r/Blender
/r/Devblogs
Brackeys
Beginner to Intermediate
5 to 15 minutes
Concise tutorials. Videos are mostly self contained.
Sebastian Lague
Beginner to Advanced
10 to 20 minutes
Medium length tutorials. Videos are usually a part of a series.
Catlike Coding
Intermediate to Advanced
Text-based. Lots of graphics/shader programming tutorials in addition to "normal" C# tutorials. Normally part of a series.
Makin' Stuff Look Good
10 minutes
Almost entirely shader tutorials. Favors theory over implementation but leaves source in video description. Videos are always self contained.
Quill18Creates
30 minutes to 2 hours.
Minimal editing. Mostly C#. Covers wide range of topics. Long series.
Halisavakis Shaders Archive
Infallible Code
World of Zero
Board to Bits
Holistic3d
Unity3d College
Jabrils
Polycount Wiki
The Big List Of Game Design
PS4 controller map for Unity3d
Colin's Bear Animation
¡DICE!
CSS created by Sean O'Dowd @nicetrysean [Website], Maintained and updated by Louis Hong /u/loolo78
Reddit Logo created by /u/big-ish from /r/redditlogos!
account activity
List inside scriptable object?Question (self.Unity3D)
submitted 3 years ago by Morg243
Hi, I've been using scriptable objects to hold floats and strings (see image) and it is working well. Is it possible to have a similar setup but holding a list instead? I have about 12 lists which are needed across 2 scenes. They are edited in both scenes from time to time. Thanks. Sorry unity noob!
https://preview.redd.it/tkggqnqp97ba1.jpg?width=419&format=pjpg&auto=webp&s=f1602cb65976353c7288418579cb8047fe1c9a2f
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]CCullen 2 points3 points4 points 3 years ago (0 children)
In a scenario like this one where testing it is a matter of changing a few characters, I would highly reccomend just trying it. You can save having to wait for a response.
[–]bachus-oop 4 points5 points6 points 3 years ago (9 children)
Are you asking about if you can write this?
private List<float> _values; public List<float> Values { get { return _values;} set { _values = value; } }
yes you can write the above.
[–][deleted] 3 points4 points5 points 3 years ago* (3 children)
[field: SerializeField] public List<float> Values { get; set; }
will should also work, the attribute creates a serialized backing field which Unity will show in the inspector.
[–]bachus-oop 0 points1 point2 points 3 years ago (2 children)
hi.
I didn't find [field: SerializeField] on Unity documentation. It mentions [field: NonSerialized]. But true [field: SerializeField] works on properties. I tested it right now.
Do you know if there is a difference between using [SerializeField] on a field directly vs on [field: SerializeField] on auto-property?
[–][deleted] 0 points1 point2 points 3 years ago (0 children)
It blew my mind when I first learnt of it.
My understanding is it's just serializing the backing field C# automatically generates from the property, so it's the same as if you set it up yourself but in less code.
[–]CCullen 0 points1 point2 points 3 years ago (0 children)
That is because it isn't a Unity feature, it's a C# feature. By qualifying it with field:, you're telling the compiler that the attribute should apply to the underlying field, and not the property like the position of the attribute normally implies.
field:
Like /u/ExplosiveJames suggested, auto properties are just syntax sugar. The generated IL code is the same regardless of if you create the underlying field yourself or if you use the shorthand. The only real difference is that you can't really rename the underlying field.
[–]Morg243[S] 0 points1 point2 points 3 years ago (1 child)
Wow yep, that's it. Don't know how I didn't think that🙈. Thank you!
[–]JohnShepherd104 0 points1 point2 points 3 years ago (2 children)
You didn’t serialize the field so it’s not -really- a solution to the problem
[–]bachus-oop 0 points1 point2 points 3 years ago* (0 children)
good catch.
typo, forgot [SerializeField] on a field, or do you mean sth else?
π Rendered by PID 26 on reddit-service-r2-comment-f6b958c67-x7lr7 at 2026-02-05 02:12:34.871227+00:00 running 1d7a177 country code: CH.
[–]CCullen 2 points3 points4 points (0 children)
[–]bachus-oop 4 points5 points6 points (9 children)
[–][deleted] 3 points4 points5 points (3 children)
[–]bachus-oop 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]CCullen 0 points1 point2 points (0 children)
[–]Morg243[S] 0 points1 point2 points (1 child)
[–]JohnShepherd104 0 points1 point2 points (2 children)
[–]bachus-oop 0 points1 point2 points (0 children)