Adventure Creator  1.66.8
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2018
AC.ScenePrefab Struct Reference

Public Member Functions

 ScenePrefab (string _category, string _subCategory, string _prefabPath, string _sceneFolder, string _helpText, string _componentName, string _graphicName="")
 The default Constructor>

Parameters
_categoryThe prefab's category
_subCategoryThe prefab's name, as it appears in the Scene Manager
_prefabPathThe filepath to the prefab, starting from /Assets/AdventureCreator/Prefabs/, and including the file's name
_sceneFolderThe name of the scene folder to place this prefab in on generation
_helpTextA brief description of the prefab's purpose
_componentNameThe defining MonoBehaviour component that makes the prefab unique
_graphicNameThe name of the prefab's icon, inside /Assets/AdventureCreator/Graphics/PrefabIcons

 

Public Attributes

string category
 
string subCategory
 
string prefabPath
 
string sceneFolder
 
string helpText
 
string componentName
 
Texture2D icon
 

Detailed Description

A data container for an Adventure Creator prefab, used by SceneManager to provide a list of possible prefabs the user can instantiate.

Member Data Documentation

◆ category

string AC.ScenePrefab.category

The prefab's category

◆ componentName

string AC.ScenePrefab.componentName

The defining MonoBehaviour component that makes the prefab unique

◆ helpText

string AC.ScenePrefab.helpText

A brief description of the prefab's purpose

◆ icon

Texture2D AC.ScenePrefab.icon

The prefab's icon, when listed in SceneManager

◆ prefabPath

string AC.ScenePrefab.prefabPath

The filepath to the prefab, starting from /Assets/AdventureCreator/Prefabs/, and including the file's name

◆ sceneFolder

string AC.ScenePrefab.sceneFolder

The name of the scene folder to place this prefab in on generation

◆ subCategory

string AC.ScenePrefab.subCategory

The prefab's name, as it appears in the Scene Manager