Scripting API
Scripting API
SpriteResizedInEditor<T>
Delegate in Abyss.Core, from Abyss.Core.
Changes a T on entity, whose sprite the editor has just resized from from to to, in the entity's own units: a collider kept fitted to the sprite as the Rect tool stretches it.
public delegate void SpriteResizedInEditor<T>(World world, ulong entity, Vector2 from, Vector2 to, ref T component);Type parameters
T:
Parameters
world: The world, on the engine thread.entity: The entity whose sprite was resized.from: The size it was drawn at.to: The size it is drawn at now.component: The component, to change.
