Creates a style object for a clip sprite.
Initial style configuration.
Releases any style-owned runtime mask resources.
Nothing.
Scales the clip to fit or cover the display area.
Strategy used to size the clip against the display.
When true, centers the clip before fitting; otherwise fits relative to its current position.
Extra margin, in pixels, to include in the fit calculation.
Nothing.
Returns runtime-only crop values applied by animation.
The animated crop values in [left, top, right, bottom] order.
Returns the runtime animation scale multipliers.
The [x, y] animation scale multiplier pair.
Returns the owning clip ID.
The owning clip ID.
Returns the configured corner radii.
The corner radii in top-left, top-right, bottom-right, bottom-left order.
Indicates whether corner radii are stored in relative mode.
true if relative corner radii are enabled; otherwise false.
Returns the current crop values of the clip. The returned array contains four numbers: [left, top, right, bottom]
The current crop values of the clip.
Returns the base clip scale multipliers.
The [x, y] scale pair.
Clears cached derived values so the next update fully recomputes style-dependent sprite state.
Nothing.
Attaches a sprite instance to the style and applies the current style state to it.
Sprite to control.
Nothing.
Moves the clip to the center of the display.
Nothing.
Rebinds the style to a different media asset ID.
Media asset ID associated with the clip.
Nothing.
Scales the clip down uniformly so it fits inside the display while preserving aspect ratio.
Nothing.
Serializes the clip style into a project-safe payload.
The serialized style payload.
Sets runtime-only crop values applied by animation.
Animated crop from the left edge.
Animated crop from the top edge.
Animated crop from the right edge.
Animated crop from the bottom edge.
Nothing.
Sets runtime-only crop offset values applied by animation.
Horizontal crop offset in pixels.
Vertical crop offset in pixels.
Nothing.
Sets runtime-only scale multipliers applied by clip animation.
Animated horizontal scale multiplier.
Animated vertical scale multiplier.
Nothing.
Sets runtime-only zoom multipliers applied by animation.
Horizontal zoom multiplier.
Vertical zoom multiplier.
Nothing.
Updates the owning clip ID tracked by the style.
Owning clip ID.
Nothing.
Sets corner radii used to mask the clip into a rounded rectangle.
Uniform radius or individual radii for each corner.
When true, corner radii are interpreted relative to the unclipped sprite size.
Nothing.
Sets the crop values for the clip's sprite. This will clip the original texture to the given coordinates.
If the sprite is not a video, gif or image, it will not be updated.
If the sprite has no texture, or the texture is not valid, it will not be updated.
If updatePosition is true, it will also update the position of the sprite, so that the cropped area will maintain it's visual position.
The left coordinate of the crop area
The top coordinate of the crop area
The right coordinate of the crop area
The bottom coordinate of the crop area
If true, it will also update the position of the sprite, so that the middle of the cropped area is at the same position as the middle of the original texture. Default is true.
Sets the base crop offset used when computing crop bounds.
Horizontal crop offset in pixels.
Vertical crop offset in pixels.
Nothing.
Sets the clip scale multipliers.
Horizontal scale multiplier.
Vertical scale multiplier.
Nothing.
Sets the base zoom multipliers used when computing crop bounds.
Horizontal zoom multiplier.
Vertical zoom multiplier.
Nothing.
Applies the current style state to a sprite, including transforms, crop, and mask updates.
Sprite to update.
Nothing.
Staticdeserialize
Stores transform, crop, sizing, and masking state for a clip sprite.