EnviroCore Class

Namespace
global
Base Types
  • MonoBehaviour
Derived Types
graph BT Type-->Base0["MonoBehaviour"] Type["EnviroCore"] class Type type-node Derived0["EnviroSkyLite"]-->Type click Derived0 "/docs/client_api_10.4.0/api/global/EnviroSkyLite"

Syntax

public class EnviroCore : MonoBehaviour

Fields

Methods

Name Value Summary
ApplyProfile(EnviroProfile) void
Loads a profile into system.
BetaMie(float, Vector3) Vector3
BetaRay(Vector3) Vector3
CalculateDirectLight() void
Updates direct lighting.
CalculateMoonPosition(float, float) void
CalculateSatPositions(float) void
CalculateStarsPosition(float) void
CalculateSunPosition(float, float, bool) void
CalcWeatherTransitionState() void
Check if clouds already full rolled up to start thunder effects.
ChangeSeason(EnviroSeasons.Seasons) void
Manual change of Season
ChangeWeather(EnviroWeatherPreset) void
Set weather over id with smooth transtion.
ChangeWeather(int) void
Set weather over id with smooth transtion.
ChangeWeather(string) void
Set weather over name.
CheckSatellites() void
Destroy and recreate all satellites
CreateDirectionalLight(bool) Transform
CreateEffects(string) void
Create Effect Holder Gameobject and adds audiofeatures.
CreateSatellite(int) void
Instantiates a new satellite
CreateSystemDate() DateTime
CreateWeatherEffectHolder(string) void
Create Effect Holder Gameobject
EnterZone(EnviroZone) void
ExitZone() void
ForceWeatherUpdate() void
Forces a internal Weather Update and applies current active weatherpreset values and send out a weather changed event!
GetActiveWeatherID() int
Get Active Weather ID
GetCameraHDR(Camera) bool
Helper function to get camera hdr bool for different unity versions.
GetInHours(float, float, float, int) double
Calculate total time in hours.
GetMieG(float) Vector3
GetMieGScene(float) Vector3
GetTimeOfDay() float
Get current time in hours with UTC time offset.
GetTimeString() string
Get current time in a nicely formatted string!
GetTimeStringWithSeconds() string
Get current time in a nicely formatted string with seconds!
GetUniversalTimeOfDay() float
Get current time in hours. UTC0 (12.5 = 12:30)
Load() void
Loads the saved time and weather from Playerprefs.
OrbitalToLocal(float, float) Vector3
PlayAmbient(AudioClip) void
PlayLightning() void
PlayLightningEffect(Vector3) IEnumerator
PlayThunderRandom() IEnumerator
RegisterMe(EnviroVegetationInstance) int
Called internaly from growth objects
RegisterZone(EnviroZone) void
Remap(float, float, float, float, float) float
ResetHourEventTimer() void
Set the hourly event time to current hour. Use this if you change date and want to reset hourly events to be executed in next hour after time change.
Save() void
Saves the current time and weather in Playerprefs.
SaveProfile() void
Saves current settings in assigned profile.
SetCameraHDR(Camera, bool) void
Helper function to set camera hdr for different unity versions.
SetGameTime() void
Updates Game Time days and years. Used internaly only.
SetInternalTime(int, int, int, int, int) void
SetInternalTimeOfDay(float) void
Set the time of day in hours. (12.5 = 12:30)
SetTime(DateTime) void
Set the exact date. by DateTime
SetTime(int, int, int, int, int) void
Set the exact date.
SetWeatherOverwrite(EnviroWeatherPreset) void
Set weather directly with preset of Weather.WeatherTemplates. No transtions!
SetWeatherOverwrite(int) void
Set weather directly with list id of Weather.WeatherTemplates. No transtions!
TryPlayAmbientSFX() void
UpdateAmbientLight() void
Updates ambient lighting.
UpdateAudioSource(EnviroWeatherPreset) void
UpdateEnviroment() void
UpdateParticleClouds(bool) void
UpdateReflections() void
Updates reflection probe.
UpdateSatellitePosition(float, float, float) Vector3
UpdateSceneView() void
Updates lighting and sky in scene view to match runtime settings on start.
UpdateSeason() void
Updates and switches seasons
UpdateSunAndMoonPosition() void
UpdateTime(int) void
UpdateWeatherVariables(EnviroWeatherPreset) void
UpdateWind(EnviroWeatherPreset) void
Update Wind Settings