@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / index / UiMotion
Type Alias: UiMotion ​
ts
type UiMotion = {
lift?: number;
scale?: number;
pressScale?: number;
speed?: number;
};Defined in: ui/uiStyle.ts:51
How a pressable widget moves. lift is metres toward the viewer while pointed at, scale the size while pointed at, pressScale the size while held, and speed how quickly it gets there (higher is snappier).
Properties ​
| Property | Type | Defined in |
|---|---|---|
lift? | number | ui/uiStyle.ts:52 |
scale? | number | ui/uiStyle.ts:53 |
pressScale? | number | ui/uiStyle.ts:54 |
speed? | number | ui/uiStyle.ts:55 |

