Attention

You are viewing PyUnity docs under the develop branch. As such, they are only applicable if you installed from source. Go to https://docs.pyunity.x10.bz/en/latest/ for the most recent release.

pyunity.events module


class pyunity.events.Event[source]

Bases: object

trigger()[source]
callSoon()[source]
pyunity.events.wrap(func)[source]
class pyunity.events.EventLoopManager[source]

Bases: object

current = None

Type:    None

exceptions = []

Type:    list

exceptionLock = <unlocked _thread.RLock object owner=0 count=0>

Type:    RLock

waitingLock = <unlocked _thread.RLock object owner=0 count=0>

Type:    RLock

schedule(*funcs, main=False, ups=None, waitFor=None)[source]
addLoop(loop)[source]
start()[source]
quit()[source]
class pyunity.events.EventLoop[source]

Bases: _UnixSelectorEventLoop

async shutdown(signal=None)[source]
handleException(context)[source]
pyunity.events.StartCoroutine(coro)[source]
class pyunity.events.WaitForSeconds[source]

Bases: object

class pyunity.events.WaitForEventLoop[source]

Bases: object

class pyunity.events.WaitForUpdate[source]

Bases: WaitForEventLoop

class pyunity.events.WaitForFixedUpdate[source]

Bases: WaitForEventLoop

class pyunity.events.WaitForRender[source]

Bases: WaitForEventLoop