View source
class SnappingPlugin
package com.gskinner.motion.plugins
implements IGTweenPlugin
Available on all platforms
Plugin for GTween. Snaps (rounds) values to whole numbers during a tween.
Supports the following pluginData
properties:
- SnappingEnabled: overrides the enabled property for the plugin on a per tween basis.
Static variables
Static methods
staticinstall(?properties:Array<String>):Void
Installs this plugin for use with all GTween instances.
Parameters:
properties | Specifies the properties to apply this plugin to. Defaults to x and y. |
---|