BEst way to access TMP_Dropdown's template from script
I'm working on changing my UI theme/colours from script, and the only thing I have left to do is dropdowns. I've already been able to change the text colours using dropdown.captionText.color
and dropdown.itemText.color
, as well as the background colour with dropdown.colors
. However, I can't seem to access the templated item's colours (other than the text). Is there a way to safely get the Toggle
, Text
and Image
properties of the dropdown template without using reflection? I can't access them normally because TMP_Dropdown.DropdownItem
is protected internal. My only other choice is to manually inherit from TMP_Dropdown
, which seems like a lot of work for such a small thing.
Your answer
Follow this Question
Related Questions
TextMeshProUGUI could not be found 0 Answers
Text mesh pro not working after update 1 Answer
Game mode doesn't display TextMeshPro Text 1 Answer
Vertical Scrollbar minHeight 0 Answers
Panel UI organisation 0 Answers