I’ve declared a Texture2D variable in JS, and I was wondering how I’m meant to assign it inside the script (not in the inspector) while it’s exposed? All of the solutions I’ve read so only explain the Resources.Load method, but this does not work for an exposed variable.
I’m not sure what you means by exposed, but as far as I know, Resources.Load works for every variables. It does require the asset to be in the resources folder though, because the load being in the script, Unity can’t know if it’s used and won’t pack it in the build. I don’t think it’s possible to access assets otherwise. I think there is something with asset bundles, but I’m not sure what that creature is.