MCPcopy Index your code
hub / github.com/phaserjs/phaser / setPath

Method setPath

types/phaser.d.ts:19678–19678  ·  view source on GitHub ↗

* Set the Path that this PathFollower should follow. * * Optionally accepts Phaser.Types.GameObjects.PathFollower.PathConfig settings. * @param path The Path this PathFollower is following. It can only follow one Path at a time.

(path: Phaser.Curves.Path, config?: number | Phaser.Types.GameObjects.PathFollower.PathConfig | Phaser.Types.Tweens.NumberTweenBuilderConfig)

Source from the content-addressed store, hash-verified

19676 * @returns This Game Object.
19677 */
19678 setPath(path: Phaser.Curves.Path, config?: number | Phaser.Types.GameObjects.PathFollower.PathConfig | Phaser.Types.Tweens.NumberTweenBuilderConfig): this;
19679 /**
19680 * Set whether the PathFollower should automatically rotate to point in the direction of the Path.
19681 * @param value Whether the PathFollower should automatically rotate to point in the direction of the Path.

Callers 6

LoaderPlugin.jsFile · 0.80
MultiAtlasFile.jsFile · 0.80
PCTAtlasFile.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected