-
-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
better array layout for inspector #398
Comments
Well, aside from the aesthetic alterations in your proposal, everything else is (I think) covered by #18 which already has a PR ready-to-go.
You already don't need to have a file to reference a Resource instance. You can just do The thing that would be interesting here is the notion of creating by-value custom data structures. That would probably need to be a dedicated proposal for how to add custom "struct" types to the engine. You'd likely need a new Variant type that is essentially the same thing as a Dictionary, but which is always handled as a value rather than a reference. Unless a way of interpreting an Object as a value type was added to the engine core. Both of those changes would be very invasive though, so core devs would need to weigh in on whether the added maintenance and/or performance gains would even be worth it.
If you replaced the
These aesthetic changes sound good to me.
I see the benefit, but lots of packed data can have an effect on readability though. Maybe it should be a toggleable setting? Also relevant to this is #13 which could help a lot with multi-dimensional array handling, especially if it supported multiple sheets as well as rows of resources. |
@willnationsdev thankyou fo your feedback!
ya most of this was just my take on how it should be implemented
its good to know this is actually possible right now without using value types
the way I see it is the editbox already says the length of the array plus it allows you to change it
idk if anyone needs a option for indentation but yes I think it should be togglable for the vertical compactness
I will take a look at it |
this is super seeded by this |
Describe the project you are working on:
any project that uses data oriented design
Describe the problem or limitation you are having in your project:
I want to be able to edit array data freely without having to create a resource and pass it in.
I also want to a better array layout for nested arrays or data kinda like how unity indents and uses ⯈ to hind and show items
Describe how this feature / enhancement will help you overcome this problem or limitation:
Show a mock up screenshots/video or a flow diagram explaining how your proposal will work:
new:
or
or
compared to..
old:
Describe implementation detail for your proposal (in code), if possible:
idk
If this enhancement will not be used often, can it be worked around with a few lines of script?:
would be used often and would and would take more the a few lines of code
Is there a reason why this should be core and not an add-on in the asset library?:
The text was updated successfully, but these errors were encountered: