|
Adventure Creator 1.85.1
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2025
|
Public Member Functions | |
| PlayerPrefab (Player _playerOb) | |
| PlayerPrefab (int[] idArray) | |
| Player | GetSceneInstance () |
| Gets the runtime scene instance of the Player. | |
| PlayerData | GetPlayerData () |
| void | SetInitialPosition (PlayerData playerData) |
| void | RemoveFromScene () |
| bool | IsValid (bool warnIfNot=true) |
| Player | EditModeLoadAddressable () |
| void | ShowGUI (string apiPrefix) |
| void | ShowStartDataGUI (string apiPrefix) |
Static Public Member Functions | |
| static void | FindPlayerReferences (int playerID, string playerName) |
Public Attributes | |
| Player | playerOb |
| int | ID |
| bool | isDefault |
| int | startingSceneIndex = 0 |
| ChooseSceneBy | chooseSceneBy = ChooseSceneBy.Number |
| string | startingSceneName = "" |
| bool | useSceneDefaultPlayerStart = true |
| int | startingPlayerStartID |
Properties | |
| Player | EditorPrefab [get] |
A data container for a Player that is spawned automatically at runtime, and whose data is tracked automatically.
| AC.PlayerPrefab.PlayerPrefab | ( | int[] | idArray | ) |
The default Constructor. An array of ID numbers is required, to ensure its own ID is unique.
| Player AC.PlayerPrefab.GetSceneInstance | ( | ) |
| void AC.PlayerPrefab.RemoveFromScene | ( | ) |
Removes any runtime instance of the Player from the scene
| ChooseSceneBy AC.PlayerPrefab.chooseSceneBy = ChooseSceneBy.Number |
How to reference the Player's starting scene, if not the default (Name, Number)
| int AC.PlayerPrefab.ID |
A unique identifier
| bool AC.PlayerPrefab.isDefault |
If True, this Player is the game's default
| int AC.PlayerPrefab.startingPlayerStartID |
The ConstantID value of the PlayerStart to appear at, if not the default Player
| int AC.PlayerPrefab.startingSceneIndex = 0 |
The scene index to start in, if the Player is not the default, and chooseSceneBy = ChooseSceneBy.Number
| string AC.PlayerPrefab.startingSceneName = "" |
The name of the scene to start in, if the Player is not the default, and chooseSceneBy = ChooseSceneBy.Name
| bool AC.PlayerPrefab.useSceneDefaultPlayerStart = true |
If True, then the Player will appear at their initial scene's Default PlayerStart - as opposed to one specified here