Table of Contents

 
RemoveObject
 

Purpose

Removes a given object from current scene

 

Protoype

void CSceneMngr::RemoveObject (string str_name)
 

Parameters

name the name of the object to remove from the scene
 

Description

This overloaded function removes an object from the scene based on its name. The object will be disassociated from the scene but not removed completely.

NOTE: If you try calling this function with no loaded scene it will exit after reporting a warning in the event log

NOTE: If you try removing a name that does not exist, the function will exit after reporting a warning to the event log

 

Use

CSceneMngr scene;
// remove "my_text" from the scene
scene.RemoveObject("my_text");
 

Prev: RemoveObject(1)