Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Runtime Inspector and Hierarchy [Open Source]

Discussion in 'Assets and Asset Store' started by yasirkula, Oct 22, 2017.

  1. yasirkula

    yasirkula

    Joined:
    Aug 1, 2011
    Posts:
    2,783
    You can check out the InternalSettings asset to see how I've used Hidden Fields and Exposed Fields.
     
  2. TMC_FumiyaMatsune

    TMC_FumiyaMatsune

    Joined:
    Aug 30, 2023
    Posts:
    11
    Thank you for your answer.
    I wanted to control the fields of the class, so I created internal setting 1 by duplicating the internal configuration.
    I tried to hide everything by putting * in the settings like in image [1].
    I added InternalSettings1 to the Runtime Inspector settings as shown in image [2], but the field is not hidden.
    Please let me know if I make a mistake in using it.
     

    Attached Files:

    • 1.jpg
      1.jpg
      File size:
      107.4 KB
      Views:
      16
    • 2.jpg
      2.jpg
      File size:
      204.8 KB
      Views:
      14
  3. yasirkula

    yasirkula

    Joined:
    Aug 1, 2011
    Posts:
    2,783
    It looks correct. There is no space character after *, right? Is your class named exactly TextHandle?
     
  4. TMC_FumiyaMatsune

    TMC_FumiyaMatsune

    Joined:
    Aug 30, 2023
    Posts:
    11
    There was no letter after the *.
    It can also be applied to script classes, right? I'm a beginner, so it would be helpful if you could tell me in detail.
     

    Attached Files:

    • 3.jpg
      3.jpg
      File size:
      42.5 KB
      Views:
      14
  5. yasirkula

    yasirkula

    Joined:
    Aug 1, 2011
    Posts:
    2,783
    I've just now tested this scenario with a class called TestScript and it worked. I'm guessing that another class with the same name exists in a package or somewhere else and RuntimeInspector is pulling that class instead of yours. I'd recommend calling Debug.Log(typeof(TextHandle).AssemblyQualifiedName), copying the returned string and pasting it to the RuntimeInspectorSettings asset instead of just "TextHandle". That should hopefully do the trick.
     
  6. TMC_FumiyaMatsune

    TMC_FumiyaMatsune

    Joined:
    Aug 30, 2023
    Posts:
    11
    Thank you for the test up.
    The name I was advised did not recover from the symptoms,
    but the symptoms recovered when I reset the environment and imported the assets.
    The cause is unknown, but I will wait and see.
    yasirkura, Thank you for your response.
     
    yasirkula likes this.
  7. BigKnockDown

    BigKnockDown

    Joined:
    Mar 23, 2013
    Posts:
    9
    Hi yasirkula , First of all thanks for the amazing tool. it works nicely.
    I have one question, so I am adding an object to a pseudoScene , this Parent Game object contains three children.
    Now I am hiding these children by using GameobjectFilter, which hides the children as expected.
    My question is how do I hide the 'Expand Arrorw' in front of the Parent Gameobject, because since there are no child to show under it we dont need this expand arrow.
    can you please guide me how to do that ?
     
  8. yasirkula

    yasirkula

    Joined:
    Aug 1, 2011
    Posts:
    2,783
    @BigKnockDown You're right but there is unfortunately no simple way to do that. Basically, this property should check if any of the children are visible, as well. You can iterate over each children via GetChild and run this filter on that child to see if it's visible.