xenko
xenko copied to clipboard
[Feature Request] Let GameStudio initialize List<T> and T[] members
There is actually a video of the bug because someone streamed himself trying out Xenko:
https://youtu.be/-DLIKCPEDVE?t=6753
I don't know if it's a bug more a user experience kind of thing. But if you declare a public property or field of type List<T> and do nothing else like that:
public List<int> SomeIntegers { get; set; }
The property grid shows (None) for it's value and doesn't allow any editing of the values. If you put in a default value however, like so
public List<int> SomeIntegers { get; set; } = new List<int>();
you can edit it's values as one would expect.
Adding the initialization part after the property grid has reached the (None) state is also not possible, it only works if the property's name is "new". That means you have to rename it and declare it with another name and initialization or remove it, switch to Game Studio, let it compile, go back to Visual Studio, add the initialization, go back to Game Studio.
Well it behaves predictable so it's not a bug, but it is very unintuitive. I think this is more a feature request than a bug report. I would like if the Game Studio could initialize List and Array properties.