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)
static getClassType()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_childint
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.