Search Unity

Hope show NativeString content in EntityInspector

Discussion in 'Entity Component System' started by zephyr831125, Mar 17, 2019.

  1. zephyr831125

    zephyr831125

    Joined:
    Mar 4, 2017
    Posts:
    54
    When I using NativeString in IComponentData, it's showing the length of the buffer in EnittyInspector like this:
    upload_2019-3-17_16-11-50.png

    I hope it will show the content of the NativeString, I did it myself, the result is like this:
    upload_2019-3-17_16-15-54.png

    The problem is what I edit is just a package cache file, which resets every time restart Unity. So it need you guys in Unity to add it.

    Please!
     
  2. MostHated

    MostHated

    Joined:
    Nov 29, 2015
    Posts:
    1,235
    I have been wondering if the asset Odin could be used for things like this. I have an issue with the inspector where multiple different things which are all named differently show up but end up all having the same name. They each say "PreviousWaypoint", but each one is different.

    I know Odin can do a lot of really nice/neat inspector things, I am just not sure where to even begin to try to see if I could use it to change what is displayed because I am not sure where or what is used to generate that inspectors view. I would be interested to hear as well what anyone comes up with, as I have been considering adding some string stuff in as well and I am sure I will end up in a similar situation.

     
    learc83 likes this.
  3. zephyr831125

    zephyr831125

    Joined:
    Mar 4, 2017
    Posts:
    54
    Me too! All the same name! Really confusing when debuging.
    upload_2019-3-18_19-44-47.png
    upload_2019-3-18_19-43-49.png
     
    Last edited: Mar 18, 2019
    MostHated and learc83 like this.