The sprite takes the whole image at its pixel size and the texture's name, numbered like any other clash. CreateAssetCommand now accepts starting properties; they go through the schema in execute, so an unknown key or a bad value is refused before the project is touched, and one undo removes the asset. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
583 B
583 B
rechtsklick auf texture asset => menüeintrag: create sprite from texture selbsterklärend oder? (es soll im prinzip ein sprite asset erstellt werden wo automatisch die ausgewählte textur zugewiesen ist)
Umgesetzt: das Sprite bekommt die Pixelgröße des Bildes (Wahl des Users) und heißt wie die
Textur, nach der üblichen Regel durchnummeriert (pasted → pasted 2). Ist die Bildgröße noch
nicht bekannt, bleibt es bei 100 × 100. Die Start-Werte gehen beim Ausführen durch das Schema wie
jede andere Änderung; ein Undo nimmt das Asset in einem Schritt heraus.