#Request to make blob asset data viewable at inspector
1 messages Β· Page 1 of 1 (latest)
Oh there's a ton of quality of life stuff like this i'd love to see improved in the editor:
- As mentioned, blob data
- Collider data
- NativeContainer data ( these are now supported on components )
- Retention of collapsed components in the inspector - for example if i'm clicking through entities in the EH ( Entities Hierarchy ) at runtime and inspecting values of a specific component, just to compare values across different entities, if i collapse all other components except for the one i'm interested in, everything uncollapses when i click on another entity. Would be reallllly nice improvement to have this behave like the gameobject Inspector where component collapse state is retained
- Entities Hierarchy hierarchy view.. A hierarchy view for EH would be insanely useful imo, ie collapsible hierarchies of components similar to gameobject Hierarchy. It would improve the onboarding experience for new user and also just make life easier. Currently where entities do have a logical hierarchy ie Parent/Child relationship, the entire thing is just rendered to the EH as a flat list. Same for Physics constrained objects , some form of structural visualisation would be useful.
Currently where entities do have a logical hierarchy ie Parent/Child relationship, the entire thing is just rendered to the EH as a flat list.
Maybe I'm missing what you're talking about, but my Entities Hierarchy is a hierarchy if there's parent/child relationships, just like the normal Hierarchy view.
Hell, a recent Unity or Entities update made the Systems view get its hierarchy back for me, it was flat for a moment there
Ahh you're right actually. I think i've become so accustomed to the workflow of typing the entity number into the searchbar..
At the moment that hierarchy isn't shown when doing that, so i guess i'd ask for improvement there:
^ after searching for that specific entity
^ after scrolling tediously down the massive list of entities to find the entity i'd clicked on, without searching for it
I guess at least, some more ways to filter/organise the EH list. Auto-scroll to the entity i've just selected in scene view would also be a massive help.
It's a tough one because obviously hierarchies are anathema to the whole DOD/ECS workflow, but some solutions would be nice as it feels that the EH window isn't really very useful unless searching ( which is a great and powerful sub-toolset in itself ).
@still wharf Will it possible at least able to view physics collider blob asset data? What I expect is not just able to only display the number but bring it further that able to serialize to become exactly the same as what is baked from the selection shown at LayerMask. Can I expect this to release at dots 1.1 release?
Currently you can only see what is inside the collider blob asset by using an IDE, such as JetBrains. In this case you can simply inspect the actual Collider type data.
huh? Could you ellaborate on that? I have Rider but never knew about this feature
Give me a sec. I'll make an example.
Here you go:
So we can see in the "Raw View" that this blob asset is indeed a convex collider.
ah, this. I was expecting in entity inspector π
Oh ok. Sorry for misleading you there π
What I was trying to say is that the only way to see what's in the blob assets at this point is really through the IDE debugger.
@still wharf any plans for improving on that ?
Given that blob assets are really just arbitrary memory sections, there would need to be a specific "physics" entity inspector to visualize these in the editor.
Not to my knowledge.
I can inquire though.
tertle already has it in his core library though π
This was one of my post too for today question, it's QOL but would speed up tremendously debugging
Especially when you have to modfy the collider & the filters at runtime ( Legit my current use case with procedural geometry of a conveyor belt )
@unborn vector sorry , who ? what ? where ?
I'd like to have a look at that too.
just add this and inspect blobs
https://github.com/tertle/com.bovinelabs.core
Holly molly this thing is massive
@unborn vector : Do you know where specifically this collider inspector is? I have difficulties locating it in that repo...
I think it's this
https://github.com/tertle/com.bovinelabs.core/blob/master/BovineLabs.Core.Editor/Inspectors/ColliderInspector.cs
How did I not see this? π Thanks!
I think can just merge it into official package π
The PropertyInspector base class used here is internal. I am asking internally whether there is a plan to allow packages to create their own property inspectors for these sorts of use cases. Would make sense to me...
tertle is using an assembly info to get access to the internals of the Unity.Entities.Editor package for that reason.
See here:
https://github.com/tertle/com.bovinelabs.core/blob/master/BovineLabs.Core.Editor/Internal/Unity.Entities.Editor/AssemblyInfo.cs
Nice catch
Next step is serialize it with layer mask instead of just showing numbers
@still wharf did you have to take the entire github repo to make it work ?
Nope, just took that inspector.
But as I said, there is that internalsVisibleTo trick which you would need to do also.
So ... basically put the inspector script in a folder & add the hack for your project
will try now
do that work too in the entity inspector ?
Isn't that the entity inspector that I show above? Which inspector do you mean?
nvm that's it
Yeah trying to do that , but currently getting tired of my project
Holding on & freezing on that all the time
( but that's unrelated to that question soooo nvm )
In the assembly I added this I needed to add a reference to "Unity.Entities.UI.Editor" btw
Share the thingy directly worst case , it's easier to replicate π for people coming here next
@copper grove unrelated My editor Freeze completely and could go on forever
Like litterrally
The animation of the progress bar is showing but it get stuck without any errors
More of a core editor problem then. Definitely if you have similar and its related to dots/burst at all post in that thread
You can use LayerMaskField if you are using the same names in physics and regular layers.
Need u to push it hardly to make it public accessible
Is that happening while your IDE is attached?
nope
Just when i'm modifying code in systems
and the editor refresh the domain
Weird. I don't have that issue. Maybe related to the size of your project. When we are working in the PhysicsSamples project during development, we don't run into this sort of issue.
What editor version are you using right now?
And entities/physics package version
Not saying at all that it's related to physics π
I don't know at all , I just know my editor freeze for no apparent reason I need to kill and reboot the editor
2022.3.7 - Editor - Lastest ECS & Dots packages ( 1.0.14 )
(unity is welcome to use anything in my library without the license clone requirement of MIT, been meaning to add a secondary license to the library for a while)
But yeah that inspector is very useful, I originally wrote it 2-3 years ago and has come in very handy
Just knowing the type of collider can be invaluable
Thanks. Much appreciated!
I was under the (outside) impression that much of this code was basically a pre-release for the com.unity.properties.ui package that has been shoved into the entities package. The com.unity.properties package has made it to core, but I can't see the UI for it.
In my project I'm even using it to draw inspector UIs for non-Unity-serialized objects unrelated to Entities, but I would be using properties.ui if I could find it internally!
Nice job on the collider inspector daniel (or whoever worked on it). Very thorough implementation.
Glad to finally be able to delete mine
Lol currently I can't use the latest version because of a weird bug - - "