panda3d.core.SwitchNode

from panda3d.core import SwitchNode
class SwitchNode

Bases: SelectiveChildNode

A node that renders only one of its children, according to the user’s indication.

Inheritance diagram

Inheritance diagram of SwitchNode

__init__(name: str) → None
static getClassType() → TypeHandle
Return type

TypeHandle

getVisibleChild() → int

Returns the index of the child that should be visible.

setVisibleChild(index: int) → None

Specifies the particular child of this node, by index, that will be visible.

property visible_child
Getter

Returns the index of the child that should be visible.

Setter

Specifies the particular child of this node, by index, that will be visible.

Return type

int