magic-script-components-react-native icon indicating copy to clipboard operation
magic-script-components-react-native copied to clipboard

Implement [Spinner] properties and update defaults

Open grzegorzdec opened this issue 6 years ago • 0 comments

https://github.com/magic-script/magic-script-components/issues/231

Name Type Default Value Required Description
type string n/a The loading spinner type (sprite-animation or particle-package).
resourceId number 0 The resource ID.
resourcePath string '' The resource path in the resource (optional).
height number 0 The height of the loading spinner (optional).
Name Type Default Value Description
value number Sets a normalized value between 0-1 for loading completeness, with 0 being no progress and 1 fully complete. This is used only when the loading spinner is determinate.
size vec2 Sets the loading spinner size. This affects the visual scale of all sprite-based loading spinners but has no affect on the visual scale of a particle-based spinner. Modify the particle files directly to adjust the particle effect size. This does affect, and should be used to adjust, the bounds of all loading spinners.

grzegorzdec avatar Feb 06 '20 12:02 grzegorzdec