Table of Contents

 
InScene
 

Purpose

Determines whether the given object is included in the given scene

 

Protoype

bool CSceneMngr::InScene (string str_name, string str_scene = "")
 

Parameters

name the name of the object to look for
scene the name of the scene to look into
 

Description

If you don't know for sure whether or not an object has been added to a scene, you can use this function to find out. It will return TRUE if the object is found in the scene, and FALSE if it is not. If you want to look into the currently loaded scene rather than a specific scene, you can leave off the last parameter.

NOTE: If no scene is loaded this function will exit after reporting a warning in the event log

 

Use

CSceneMngr scene;
// is our text object there?
if (scene.InScene("my_text", "my_scene"))
    // yes it is!
 

Prev: GetNumLayers
Next: LoadScene