Hey ppl! I'd like to be able to edit a public array from the editor, but simply doing this (in C#) doesn't make the array available for editing in the properties editor: Code (csharp): public string[] myArray={"default element"};
This is due to the current way we serialise .Net objects. This will be fixed in the upcoming 1.2 release of Unity. Currently you will have to store the data in some other way and then build the array in runtime.
Does 1.2 support arrays of custom classes in the inspector? It'd be sweet if I could have for instance, an array of Frames for an animation system. The Frame class would include an index and a duration. I'm picturing it'd be similar to set up as the input axes in the Input Manager. -Jon
If they implement arrays in the inspector, but limits the implementation to standard types only, I'll run over to their office and beat them insanely with my keyboard. AKA: I'm fairly sure they see no reason to limit the implementation to standard types.
Don't hurt them!! I ask because currently custom structs don't show up in the inspector... for instance: Code (csharp): public struct Fooo { float blah; } public Fooo asdf; -Jon