Itās grayed out for me
by user 401167615826984963
Ok its the same issue as in 2022 then
we track that here: Discord
@positlabs just pushed the new version with the sprite changes ![]()
awesome! What is the recommended way to upgrade? Can I just reimport the new version on top of the old one?
by user 401167615826984963
Via the package manager
You can also check the ExportInfo component, in the bottom will a button show up informing you that we have an update (hold ALT before clicking to install directly)
Also, I started exploring how to do resize handlers for sprites. I got something kind of working, but it seems like thereās some automagical stuff going on and I donāt know how to react to it. Iām basically just trying to recreate the ābackground-size: coverā from CSS. needle-audioviz-scrubber/Needle/MainScene/src/scripts/audioviz.ts at master Ā· positlabs/needle-audioviz-scrubber Ā· GitHub
by user 401167615826984963
setTexture is still private but you can set the sprite now directly
this.image.sprite = ā¦
like you had it before ![]()
oh got it, cool
by user 401167615826984963
What is the code that is generated in the cs files?
Ah wrong type. You can override it via //@type UnityEngine.Image (add as comment above @serializable() for example)
What typescript code did produce that output?
@serializable(Image)
image: Image = new Image()
by user 401167615826984963
Ah, why ānew Image()ā?
Just so it was defined and I donāt have to do undefined checks everywhere
by user 401167615826984963