- Home /
Loading Built-in resources
I want to programmatically add a UISprite to an image object. I know I can do this using AssetDatabase.GetBuiltinExtraResource<Sprite>("UI/Skin/UISprite.psd")
but I believe this will only work in the editor and not work once built. So how can I access the UISprite when built? Is there a way to do it using Resources.Load()
? Thanks.
EDIT
Alternatively, if this is impossible then how can I 'move' the UISprite from its inbuilt position to the Resources folder so I can then access it?
Your answer
![](https://koobas.hobune.stream/wayback/20220612202626im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Resources.Load() problem 0 Answers
Image vs Sprites performance 1 Answer
how can I change the source image on a UI button in JS code? HELP? 1 Answer
Possible to use sprite mesh for UI.Image GraphicRaycaster culling? 1 Answer
Change Button sprite state to pressed when submit is called on the button 0 Answers