Table of Contents

 
RemoveObject
 

Purpose

Removes a given object from current scene

 

Protoype

void CSceneMngr::RemoveObject (int i_layer)
 

Parameters

layer the layer to remove from the scene
 

Description

This overloaded function removes an object from the scene based on its layer. 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 layer that does not exist, the function will exit after reporting a warning to the event log

 

Use

CSceneMngr scene;
// remove layer 6 from the scene
scene.RemoveObject(6);
 

Prev: RemoveAll