Skip to main content

Vector2SignalContext

class Vector2SignalContextTOwner = void extends CompoundSignalContextPossibleVector2Vector2'x''y'TOwnerimplements Vector2SignalHelpersTOwner

Type Parameters

Constructors

constructor

Type Parameters

Parameters

Overwrites CompoundSignalContext.constructor

Properties

signals

readonly public signals: keyof Vector2SignalanyanyTOwnerSignalContextanyanyTOwner[] = []
Inherited from CompoundSignalContext.signals

Methods

add

Parameters


cross

Parameters


dispose

public dispose(): void
Inherited from CompoundSignalContext.dispose

div

Parameters


dot

Parameters


edit

Parameters


get

public get(): Vector2
Inherited from CompoundSignalContext.get

getInitial

public getInitial(): SignalValuePossibleVector2number

Get the initial value of this signal.

Inherited from CompoundSignalContext.getInitial

getter

public getter(): Vector2
Inherited from CompoundSignalContext.getter

isInitial

public isInitial(): boolean

Check if the signal is currently using its initial value.

Examples

Inherited from CompoundSignalContext.isInitial

isTweening

public isTweening(): boolean

Is the signal undergoing a tween?

Inherited from CompoundSignalContext.isTweening

mod

Parameters


mul

Parameters


parse

public parsevalue: PossibleVector2number: Vector2

Parameters

Inherited from CompoundSignalContext.parse

raw

public raw(): PossibleVector2number

Get the raw value of this signal.

If the signal was provided with a factory function, the function itself will be returned, without invoking it.

This method can be used to create copies of signals.

Examples

Inherited from CompoundSignalContext.raw

reset

public reset(): TOwner

Reset the signal to its initial value (if one has been set).

Examples

Inherited from CompoundSignalContext.reset

save

public save(): TOwner

Compute the current value of the signal and immediately set it.

This method can be used to stop the signal from updating while keeping its current value.

Examples

Inherited from CompoundSignalContext.save

set

Parameters

Inherited from CompoundSignalContext.set

setter

Parameters

Inherited from CompoundSignalContext.setter

sub

Parameters


toPromise

Inherited from CompoundSignalContext.toPromise

toSignal

Overwrites CompoundSignalContext.toSignal

tweener

Parameters

Inherited from CompoundSignalContext.tweener

collectPromise

static public collectPromiseTpromise: PromiseT: PromiseHandlenullT
static public collectPromiseTpromise: PromiseTinitialValue: T: PromiseHandleT

Type Parameters

Parameters

Inherited from CompoundSignalContext.collectPromise

consumePromises

static public consumePromises(): PromisePromiseHandleany[]
Inherited from CompoundSignalContext.consumePromises

hasPromises

static public hasPromises(): boolean
Inherited from CompoundSignalContext.hasPromises