Class LevelSceneBuilder
- Namespace
- TDMaker.Editor
- Assembly
- TDMaker.Editor.dll
Builds a playable scene from caller-owned assets. No sample content is loaded unless explicitly supplied by the caller.
public static class LevelSceneBuilder
- Inheritance
-
LevelSceneBuilder
- Inherited Members
Methods
BuildRig(Camera, LevelAuthoring, LevelAsset, Material, HudTheme, ArtSet, Sprite, Action<TDGameSettings>, Action<AudioCuePlayer>)
Runner, views, camera control and HUD (shared by the level scenes and the demo scene). Returns the HUD.
public static GameHud BuildRig(Camera camera, LevelAuthoring authoring, LevelAsset level, Material material, HudTheme theme, ArtSet art = null, Sprite groundArt = null, Action<TDGameSettings> configureSettings = null, Action<AudioCuePlayer> configureAudio = null)
Parameters
cameraCameraauthoringLevelAuthoringlevelLevelAssetmaterialMaterialthemeHudThemeartArtSetgroundArtSpriteconfigureSettingsAction<TDGameSettings>configureAudioAction<AudioCuePlayer>
Returns
Create(LevelAsset, Material, HudTheme, string, ArtSet, Sprite, Action<TDGameSettings>, Action<AudioCuePlayer>)
Creates and saves a level scene with the runtime rig, camera, path and build-slot authoring.
public static void Create(LevelAsset level, Material material, HudTheme theme, string scenePath, ArtSet art = null, Sprite groundArt = null, Action<TDGameSettings> configureSettings = null, Action<AudioCuePlayer> configureAudio = null)
Parameters
levelLevelAssetmaterialMaterialthemeHudThemescenePathstringartArtSetgroundArtSpriteconfigureSettingsAction<TDGameSettings>configureAudioAction<AudioCuePlayer>
SaveScene(Scene, string)
Saves a scene with stable file ids.
public static void SaveScene(Scene scene, string scenePath)
Parameters
sceneScenescenePathstring