SwitchNode

from panda3d.core import SwitchNode
class SwitchNode

Bases:

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)
static get_class_type() TypeHandle
get_visible_child() int

Returns the index of the child that should be visible.

set_visible_child(index: int)

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

property visible_child int
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.