Objects

class Varwin.Objects

Bases: object

Provides the ability to work with scene objects.

static GetAll() List[Object]

Returns all objects in the scene.

Example:

result = Varwin.Objects.GetAll()
T = ~T
static GetObjectsOfType(type: Type[T]) List[T]

Returns all scene objects of the specified type.

Example:

result = Varwin.Objects.GetObjectsOfType(PlayerWrapper)
static GetObjectByInstanceId(id: int) Object

Returns the scene object with the specified id.

Returns:

scene object

Example:

result = Varwin.Objects.GetObjectByInstanceId(0)
static GetObjectByVarName(name: str) Object

Returns the scene object with the specified variable name.

Returns:

scene object

Example:

result = Varwin.Objects.GetObjectByVarName("text")