I'm experimenting with UI Toolkit and it looks quite promising, as I've been hoping -- thanks Unity team!
I'm DIYing a lot of things in my game, and one of them is to use texture arrays as texture atlases, and custom rendering code for referencing sprites in them. So, to render a sprite, I need the Texture2DArray object plus an integer (bitfield) that contains information about the slice, how many animation frames are contained, etc.
I've noticed in examples that for images, one can use a...
Using texture array slices as icons, instead of sprites/texture2d
I'm DIYing a lot of things in my game, and one of them is to use texture arrays as texture atlases, and custom rendering code for referencing sprites in them. So, to render a sprite, I need the Texture2DArray object plus an integer (bitfield) that contains information about the slice, how many animation frames are contained, etc.
I've noticed in examples that for images, one can use a...
Using texture array slices as icons, instead of sprites/texture2d