I feel like I’m missing something but I don’t know what it is. I was working in the editor, setting up several things. Among them was a health bar that I made using a Slider following the Brackeys tutorial. But when I went to code it, as he does, I couldn’t declare a Slider variable (but autocomplete suggested SilderJoint2D, which I think is different). In fact, I’m missing Image, RawImage as well, and probably others. I then went to look at the documentation and RawImage is no longer in there. Same for trying to get it through GetComponent<>.
I’m using 2020.3.16f, by the way.
So… are they in the process of being removed and they’re just in the editor for some reason? Or is the documentation not current? Sorry if this was already asked but searching RawImage and Slider in the forums didn’t help. In fact, it seems like maybe many people are using even older versions since they seem to be trying to use them fine.
Thank you VERY much. I can breathe a sigh of relief. I have some reading to do. And for my further education, how did you guys find out about this change? Do you read all the release notes? Or is there a more straightforward way to find something like this out?
In general, yes. But that wouldn’t have helped you in this case. What would is to check the package manager or the documentation about packages, familiarize yourself with what Unity offers. It is very useful.
Well, once you’re in this video game making business, it’s enough if you read the forums or the blogs or the release notes. News rarely evades you.
Good luck! And never be shy to ask help on the forums, we’re here to help.
It was probably discussed in a Unity Blog at the time. But Unity has moved a few things to packages at this point, so what I generally do is google for the scripting reference for whatever I’m looking for. If the top hit is an older Unity version, and it doesn’t exist in the scripting reference in the current version, it either was removed entirely (which is unlikely if it wasn’t already marked as deprecated or obsolete), or it was moved to a package.
I’ve complained a few times that moving core features to packages is fragmenting the documentation in a negative way, with individual packages having their own separate documentation.