Hey !
How do you usually write generic code in Unity Answers ? I’m trying to write something like GetComponent< ComponentType >()
without the spaces but all I get is GetComponent()
.
Is there a way to escape those characters so that their content isn’t mistaken for a markup ?
Thank you !
Type those in a code block (THe 101010 icon above an answer).
GetComponent<MyComponent> ();