Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Unable to drag a panel onto inspector area

Discussion in 'Editor & General Support' started by izzaaryssa, Mar 24, 2023.

  1. izzaaryssa

    izzaaryssa

    Joined:
    Feb 9, 2023
    Posts:
    4
    i wanted to drag my panel that is JoystickArea onto the inspector area but it would not let me and shows the red logo. How to make it work?
     

    Attached Files:

  2. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    7,611
    Does JoystickArea have a Movement Joystick component on it? It's a typed field, so the game object will need to have the appropriate component on it.
     
  3. izzaaryssa

    izzaaryssa

    Joined:
    Feb 9, 2023
    Posts:
    4
    do you mean this? upload_2023-3-24_13-58-56.png
     
  4. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    7,611
    Well that's just a game object in your hierarchy. I have no idea what components it has on it.

    Nonetheless, the field is looking for an object of type
    Movement Joystick
    . Whatever you drag into it, needs to have that type of component on it to be valid.
     
  5. izzaaryssa

    izzaaryssa

    Joined:
    Feb 9, 2023
    Posts:
    4
    I'm sorry am new to this.. i do not think it is on it..
     
  6. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    7,611
    Then you need to add the necessary component, or find the game object that does have this component.