ProblemI have a private Array in my java script code. How can I make sure Unity3D serialize it?
This question has a clean, accepted answer. Please also see the related material for more details. See also
Remarks
(comments are locked)
|
|
First, you'll need to use an array/collection with a type which can be serialized, and then add @SerializeField above it, i.e.
or
You can't use a basic javascript array because it's untyped - use either the builtin or List type for it. The latter will work very similar to Array (it has .Add etc)
(comments are locked)
|
