Question by
dhwanit-z · Jun 21, 2020 at 09:40 AM ·
scripting problemspritetexture2d
Texture not centered in sprite
I dynamically add a texture to my sprite. The texture shows up but isn't centered on the sprite (but is there in the scene). Additionally the sprite in the inspector seems to be blank. If i drag an image in there manually it is then aligned properly.
screenshot-2020-06-20-at-213437.png
(127.0 kB)
screenshot-2020-06-20-at-213445.png
(164.6 kB)
Comment
Your answer
Follow this Question
Related Questions
[SOLVED] Problems creating a Sprite through script 0 Answers
How to change a button image with script? 1 Answer
How would I go about color correcting a Raw Image? 0 Answers
ScreenCapture.CaptureScreenshotAsTexture() is making a milky white tinted screenshot. 1 Answer
HOW TO GET AN APPEARANCE OF A SCENE BY SCRIPT?????????? 0 Answers