Search Unity

Question How can I get access to this slider without using public variable?

Discussion in 'UI Toolkit' started by LazyGhost15, Feb 5, 2023.

  1. LazyGhost15

    LazyGhost15

    Joined:
    Feb 12, 2022
    Posts:
    120

    Idk how to use it without making the variable public.
     
  2. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    7,861
    Wrong UI sub forum.

    And what's wrong with referencing it in the inspector? Otherwise you can use GetComponentInChildren<T>.