#unity doesn't allow me to add RectTransform or Panel to my script

1 messages · Page 1 of 1 (latest)

tulip moss
#

sorry if this is the wrong channel but I couldn't find GUI.
I'm tryna add a panel to my script (through public Panel but it isn't letting me so I tried adding rect transform (public RectTransform) in but it isn't working for some reason does anyone have any solution to this?

patent basalt
#

try GameObject instead

#

you can then access all of the components that you want

tulip moss
#

k thx