Adventure Creator  1.79.1
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2022
AC.SceneManager Class Reference
Inheritance diagram for AC.SceneManager:

Public Member Functions

void ShowGUI (Rect windowRect)
 
void InitialiseObjects (bool createFolders=true)
 Makes the current scene AC-ready, by setting up the MainCamera, instantiating the GameEngine prefab, and optionally creating "folder" objects. More...
 
void GetPrefabsInScene ()
 

Static Public Member Functions

static GameObject AddPrefab (string folderName, string prefabName, bool canCreateMultiple, bool selectAfter, bool putInFolder)
 Adds an Adventure Creator prefab to the scene. More...
 

Detailed Description

Handles the "Scene" tab of the Game Editor window. It doesn't store any data from the scene itself, only references objects that do. It provides a list of Adventure Creator prefabs that can be created and managed.

Member Function Documentation

◆ AddPrefab()

static GameObject AC.SceneManager.AddPrefab ( string  folderName,
string  prefabName,
bool  canCreateMultiple,
bool  selectAfter,
bool  putInFolder 
)
static

Adds an Adventure Creator prefab to the scene.

Parameters
folderNameThe name of the subfolder that the prefab lives in, within /Assets/AdventureCreator/Prefabs
prefabNameThe name of the prefab filename, without the '.asset' extension
canCreateMultipleIf True, then multiple instances of the prefab can exuist within the scene
selectAfterIf True, the created GameObject will be selected in the Hierarchy window
putInFolderIf True, then the Scene Manager will attempt to place the created GameObject in an appropriate "folder" object.
Returns
The created prefab GameObject

◆ GetPrefabsInScene()

void AC.SceneManager.GetPrefabsInScene ( )

Populates the list of 'Existing prefabs' for the currently-selected prefab button in the Scene Manager GUI.

◆ InitialiseObjects()

void AC.SceneManager.InitialiseObjects ( bool  createFolders = true)

Makes the current scene AC-ready, by setting up the MainCamera, instantiating the GameEngine prefab, and optionally creating "folder" objects.

Parameters
createFoldersIf True, then empty GameObjects that acts as folders, to aid organisation, will be created

◆ ShowGUI()

void AC.SceneManager.ShowGUI ( Rect  windowRect)

Shows the GUI.