Module GameTypes :: Class KX_VisibilityActuator
[frames] | no frames]

Class KX_VisibilityActuator

PyObjectPlus --+            
               |            
          CValue --+        
                   |        
     SCA_ILogicBrick --+    
                       |    
           SCA_IActuator --+
                           |
                          KX_VisibilityActuator

Visibility Actuator.

Instance Methods
bool
isA(game_type)
Check if this is a type or a subtype game_type. (Inherited from GameTypes.PyObjectPlus)
    Deprecated
 
set(visible)
Sets whether the actuator makes its parent object visible or invisible.
integer
getExecutePriority()
Gets the execution priority of this logic brick. (Inherited from GameTypes.SCA_ILogicBrick)
string
getName()
Returns the name of the CValue. (Inherited from GameTypes.CValue)
KX_GameObject
getOwner()
Gets the game object associated with this logic brick. (Inherited from GameTypes.SCA_ILogicBrick)
 
setExecutePriority(priority)
Sets the priority of this logic brick. (Inherited from GameTypes.SCA_ILogicBrick)
Instance Variables
int executePriority
This determines the order controllers are evaluated, and actuators are activated (lower priority is executed first). (Inherited from GameTypes.SCA_ILogicBrick)
bool invalid
Test if the object has been freed by the game engine and is no longer valid. (Inherited from GameTypes.PyObjectPlus)
string name
The name of this CValue derived object (read-only). (Inherited from GameTypes.SCA_ILogicBrick)
KX_GameObject or None in exceptional cases. owner
The game object this logic brick is attached to (read-only). (Inherited from GameTypes.SCA_ILogicBrick)
boolean useOcclusion
whether the actuator makes its parent object an occluder or not
boolean useRecursion
whether the visibility/occlusion should be propagated to all children of the object
boolean visibility
whether the actuator makes its parent object visible or invisible
Method Details

set(visible)

 

Sets whether the actuator makes its parent object visible or invisible.

Parameters:
  • visible - - True: Makes its parent visible.
    • False: Makes its parent invisible.

Deprecated: Use the visibility attribute instead.