Search Unity

Global accessible classes and variables in USS

Discussion in 'UI Toolkit' started by hvacek22, Sep 30, 2021.

  1. hvacek22

    hvacek22

    Joined:
    Apr 24, 2018
    Posts:
    28
    Hello, is there a way how to declare classes and variables in USS which are accessible in whole UI Document or in every UI Document in the project?

    Than you
     
  2. hvacek22

    hvacek22

    Joined:
    Apr 24, 2018
    Posts:
    28
    there are milions of people around this forum, but nobody could say at least "it is/isnt possible"? :/
     
  3. manuelgoellnitz

    manuelgoellnitz

    Joined:
    Feb 15, 2017
    Posts:
    397
    The uss classes and variables are visible in the uxml files which includes them.