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. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

Question Change marker USS style from script?

Discussion in 'Timeline' started by JyriKilpelainen, Mar 10, 2023.

  1. JyriKilpelainen

    JyriKilpelainen

    Joined:
    Sep 5, 2011
    Posts:
    77
    Hi!
    Is it possible to change a marker’s style from within a script?
    Currently I have used the [CustomStyle(”marker”)] but I would like to change it to something else depending on what I’ve selected in marker inspector. I have the :checked and :hover:focus:checked working as well but now I’m talking about changing the whole style class name