C# Class ProceduralGeneration, ThreeDWorld

Inheritance: MonoBehaviour
Afficher le fichier Open project: dicarlolab/ThreeDWorld Class Usage Examples

Méthodes publiques

Свойство Type Description
DEBUG_testCubePrefab GameObject
DEBUG_testGridPrefab UnityEngine.TextMesh
DOOR_HEIGHT float
DOOR_WIDTH float
MAX_NUM_TWISTS int
MIN_HALLWAY_SPACING float
NUM_ROOMS int
WALL_TRIM_HEIGHT float
WALL_TRIM_THICKNESS float
WALL_WIDTH float
WINDOW_PLACEMENT_HEIGHT float
WINDOW_SIZE_HEIGHT float
WINDOW_SIZE_WIDTH float
WINDOW_SPACING float
_allHeightPlanes List
_rand System.Random
availablePrefabs List
cache_folder string
ceilingMaterial Material
ceilingPrefab SemanticObjectSimple,
complexityLevelToCreate int
desiredRndSeed int
disable_rand_stacking int
disabledItems List
enable_global_unit_scale int
floorMaterial Material
floorPrefab SemanticObjectSimple,
forceStackedItems int
gridDim float
intensityCeilingLights float
list_rands List
maxPlacementAttempts int
minStackingBases int
numCeilingLights int
permittedItems List
randomMaterials bool
roomDim Vector3
scaleRelatDict LitJson.JsonData
scene_scale_con string
scene_scale_mean float
scene_scale_seed int
scene_scale_var float
shouldUseGivenSeed bool
shouldUseStandardizedSize bool
showProcGenDebug bool
skyboxMaterial Material
standardizedSize Vector3
useStandardShader bool
use_cache_self int
use_mongodb_inter int
wallMaterials List
wallTrimMaterial Material
windowMaterial Material
windowTrimMaterial Material

Méthodes publiques

Méthode Description
CreateLightingSetup ( Vector3 roomDimensions, Vector3 roomCenter ) : void
CreateRoom ( Vector3 roomDimensions, Vector3 roomCenter ) : void
Init ( ) : void
IsDone ( ) : bool
SavePrefabInformation ( GeneratablePrefab, prefab, bool shouldRecomputePrefabInformation, bool replaceOld = true ) : void
SetupPrefabs ( bool shouldRecompute ) : void
SubdivideRoom ( ) : void
gen_rand_forinfo ( PrefabDatabase, &info ) : void
getNewUIDColor ( ) : Color
resetUIDColor ( ) : void

Private Methods

Méthode Description
AddObjects ( List prefabList ) : bool
Awake ( ) : void
CompileListOfProceduralComponents ( bool shouldRecomputePrefabInformation ) : void
DrawTestGrid ( HeightPlane, plane ) : void
MakeSimplePrefabObj ( GameObject obj, string subPath ) : void
Start ( ) : void
TryPlaceGroundObject ( Bounds bounds, float modScale, GeneratablePrefab, anchorType, int &finalX, int &finalY, HeightPlane, &whichPlane ) : bool

Tries to place object on the ground.

TryPlaceGroundObject ( Bounds bounds, float modScale, GeneratablePrefab, anchorType, int &finalX, int &finalY, HeightPlane, &whichPlane, float &offset_height ) : bool

Tries to place object on the ground.

Method Details

CreateLightingSetup() public méthode

public CreateLightingSetup ( Vector3 roomDimensions, Vector3 roomCenter ) : void
roomDimensions Vector3
roomCenter Vector3
Résultat void

CreateRoom() public méthode

public CreateRoom ( Vector3 roomDimensions, Vector3 roomCenter ) : void
roomDimensions Vector3
roomCenter Vector3
Résultat void

Init() public méthode

public Init ( ) : void
Résultat void

IsDone() public méthode

public IsDone ( ) : bool
Résultat bool

SavePrefabInformation() public méthode

public SavePrefabInformation ( GeneratablePrefab, prefab, bool shouldRecomputePrefabInformation, bool replaceOld = true ) : void
prefab GeneratablePrefab,
shouldRecomputePrefabInformation bool
replaceOld bool
Résultat void

SetupPrefabs() public static méthode

public static SetupPrefabs ( bool shouldRecompute ) : void
shouldRecompute bool
Résultat void

SubdivideRoom() public méthode

public SubdivideRoom ( ) : void
Résultat void

gen_rand_forinfo() public méthode

public gen_rand_forinfo ( PrefabDatabase, &info ) : void
info PrefabDatabase,
Résultat void

getNewUIDColor() public static méthode

public static getNewUIDColor ( ) : Color
Résultat Color

resetUIDColor() public static méthode

public static resetUIDColor ( ) : void
Résultat void

Property Details

DEBUG_testCubePrefab public_oe property

public GameObject DEBUG_testCubePrefab
Résultat GameObject

DEBUG_testGridPrefab public_oe property

public TextMesh,UnityEngine DEBUG_testGridPrefab
Résultat UnityEngine.TextMesh

DOOR_HEIGHT public_oe property

public float DOOR_HEIGHT
Résultat float

DOOR_WIDTH public_oe property

public float DOOR_WIDTH
Résultat float

MAX_NUM_TWISTS public_oe property

public int MAX_NUM_TWISTS
Résultat int

MIN_HALLWAY_SPACING public_oe property

public float MIN_HALLWAY_SPACING
Résultat float

NUM_ROOMS public_oe property

public int NUM_ROOMS
Résultat int

WALL_TRIM_HEIGHT public_oe property

public float WALL_TRIM_HEIGHT
Résultat float

WALL_TRIM_THICKNESS public_oe property

public float WALL_TRIM_THICKNESS
Résultat float

WALL_WIDTH public_oe property

public float WALL_WIDTH
Résultat float

WINDOW_PLACEMENT_HEIGHT public_oe property

public float WINDOW_PLACEMENT_HEIGHT
Résultat float

WINDOW_SIZE_HEIGHT public_oe property

public float WINDOW_SIZE_HEIGHT
Résultat float

WINDOW_SIZE_WIDTH public_oe property

public float WINDOW_SIZE_WIDTH
Résultat float

WINDOW_SPACING public_oe property

public float WINDOW_SPACING
Résultat float

_allHeightPlanes public_oe property

public List _allHeightPlanes
Résultat List

_rand public_oe property

public Random,System _rand
Résultat System.Random

availablePrefabs public_oe property

public List availablePrefabs
Résultat List

cache_folder public_oe property

public string cache_folder
Résultat string

ceilingMaterial public_oe property

public Material ceilingMaterial
Résultat Material

ceilingPrefab public_oe property

public SemanticObjectSimple, ceilingPrefab
Résultat SemanticObjectSimple,

complexityLevelToCreate public_oe property

public int complexityLevelToCreate
Résultat int

desiredRndSeed public_oe property

public int desiredRndSeed
Résultat int

disable_rand_stacking public_oe property

public int disable_rand_stacking
Résultat int

disabledItems public_oe property

public List disabledItems
Résultat List

enable_global_unit_scale public_oe property

public int enable_global_unit_scale
Résultat int

floorMaterial public_oe property

public Material floorMaterial
Résultat Material

floorPrefab public_oe property

public SemanticObjectSimple, floorPrefab
Résultat SemanticObjectSimple,

forceStackedItems public_oe property

public int forceStackedItems
Résultat int

gridDim public_oe property

public float gridDim
Résultat float

intensityCeilingLights public_oe property

public float intensityCeilingLights
Résultat float

list_rands public_oe property

public List list_rands
Résultat List

maxPlacementAttempts public_oe property

public int maxPlacementAttempts
Résultat int

minStackingBases public_oe property

public int minStackingBases
Résultat int

numCeilingLights public_oe property

public int numCeilingLights
Résultat int

permittedItems public_oe property

public List permittedItems
Résultat List

randomMaterials public_oe property

public bool randomMaterials
Résultat bool

roomDim public_oe property

public Vector3 roomDim
Résultat Vector3

scaleRelatDict public_oe property

public JsonData,LitJson scaleRelatDict
Résultat LitJson.JsonData

scene_scale_con public_oe property

public string scene_scale_con
Résultat string

scene_scale_mean public_oe property

public float scene_scale_mean
Résultat float

scene_scale_seed public_oe property

public int scene_scale_seed
Résultat int

scene_scale_var public_oe property

public float scene_scale_var
Résultat float

shouldUseGivenSeed public_oe property

public bool shouldUseGivenSeed
Résultat bool

shouldUseStandardizedSize public_oe property

public bool shouldUseStandardizedSize
Résultat bool

showProcGenDebug public_oe property

public bool showProcGenDebug
Résultat bool

skyboxMaterial public_oe property

public Material skyboxMaterial
Résultat Material

standardizedSize public_oe property

public Vector3 standardizedSize
Résultat Vector3

useStandardShader public_oe property

public bool useStandardShader
Résultat bool

use_cache_self public_oe property

public int use_cache_self
Résultat int

use_mongodb_inter public_oe property

public int use_mongodb_inter
Résultat int

wallMaterials public_oe property

public List wallMaterials
Résultat List

wallTrimMaterial public_oe property

public Material wallTrimMaterial
Résultat Material

windowMaterial public_oe property

public Material windowMaterial
Résultat Material

windowTrimMaterial public_oe property

public Material windowTrimMaterial
Résultat Material