Search Unity

Displaying Different Segments based on Selection

Discussion in 'Scripting' started by Amaryllid, May 9, 2021.

  1. Amaryllid

    Amaryllid

    Joined:
    Apr 9, 2020
    Posts:
    7
    Hi there everyone! Amaryllid here.

    Is it possible to do something like this?
    So I have a boolean that determines the type of object something is ( a ranged or melee weapon for example ) and I don't want to display attributes that don't apply to the selected weapon. So I want to hide these attributes until I click the bool, then it shows them. (this is photoshopped btw, I don't know how to do this in scripting)

    Thank you!

    :I was looking on the Unity Docs for answers on something like this but I couldn't find any.
     

    Attached Files:

  2. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,911