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 getClassType() TypeHandle
getVisibleChild() int

Returns the index of the child that should be visible.

setVisibleChild(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.