--the below script will make a slider change the Render Setting's Cube Map ResolutionthisGameObject = Space.Host.ExecutingObjectslider = Space.Host.GetReference("slider").UISlider --add reference to Scripting RuntimeOVC=function()Space.RenderSettings.DefaultReflectionResolution = slider.Value *4096-- from 0 to 40906endslider.OnValueChanged(OVC)
--clicking this object will toggle between two Skyboxes--[Add 2 materials to the first two Resource slots in Scripting Runtime component]thisGameObject = Space.Host.ExecutingObjectOnClick=function()if Space.RenderSettings.Skybox==Space.Resources[1].AsMaterial then Space.RenderSettings.Skybox=Space.Resources[2].AsMaterialelse Space.RenderSettings.Skybox=Space.Resources[1].AsMaterialendendthisGameObject.AddClickable()thisGameObject.Clickable.OnClick(OnClick)
FlareFadeSpeed
float FlareFadeSpeedgetset
The fade speed of all flares in the Scene.
Space.RenderSettings.FlareFadeSpeed=5
--the below script will make a slider change the Render Setting's Flare Fade SpeedthisGameObject = Space.Host.ExecutingObjectslider = Space.Host.GetReference("slider").UISlider --add reference to Scripting RuntimeOVC=function()Space.RenderSettings.FlareFadeSpeed = slider.Value *5-- from 0 to 5endslider.OnValueChanged(OVC)
FlareStrength
float FlareStrengthgetset
The intensity of all flares in the Scene.
Space.RenderSettings.FlareStrength=1
--the below script will make a slider change the Render Setting's Flare StrengththisGameObject = Space.Host.ExecutingObjectslider = Space.Host.GetReference("slider").UISlider --add reference to Scripting RuntimeOVC=function()Space.RenderSettings.FlareStrength = slider.Value *5-- from 0 to 5endslider.OnValueChanged(OVC)
HaloStrength
float HaloStrengthgetset
Size of the light halos.
Space.RenderSettings.HaloStrength=1
--the below script will make a slider change the Render Setting's Halo StrengththisGameObject = Space.Host.ExecutingObjectslider = Space.Host.GetReference("slider").UISlider --add reference to Scripting RuntimeOVC=function()Space.RenderSettings.HaloStrength = slider.Value *5-- from 0 to 5endslider.OnValueChanged(OVC)
ReflectionBounces
int ReflectionBouncesgetset
The number of times a reflection includes other reflections.
Space.RenderSettings.ReflectionBounces=5
--the below script will make a slider change the Render Setting's Reflection BouncesthisGameObject = Space.Host.ExecutingObjectslider = Space.Host.GetReference("slider").UISlider --add reference to Scripting RuntimeOVC=function()Space.RenderSettings.ReflectionBounces = slider.Value *5-- from 0 to 5endslider.OnValueChanged(OVC)
ReflectionIntensity
float ReflectionIntensitygetset
How much the skybox / custom cubemap reflection affects the Scene.
Space.RenderSettings.ReflectionIntensity=1
--the below script will make a slider change the Render Setting's Reflection IntensitythisGameObject = Space.Host.ExecutingObjectslider = Space.Host.GetReference("slider").UISlider --add reference to Scripting RuntimeOVC=function()Space.RenderSettings.ReflectionIntensity = slider.Value *5-- from 0 to 5endslider.OnValueChanged(OVC)
--clicking the object will open a color picker that changes the Subtractive Shadow ColorthisGameObject = Space.Host.ExecutingObjectoriginalColor = Space.RenderSettings.SubtractiveShadowColorOnChange=function(SColor) Space.RenderSettings.SubtractiveShadowColor = SColorendOnSelect=function(SColor) Space.RenderSettings.SubtractiveShadowColor = SColorendOnCancel=function() Space.RenderSettings.SubtractiveShadowColor = originalColorendOnClick=function()Space.Dialogues.ColorPicker("title","okbutton", OnChange, OnSelect, OnCancel, originalColor)endthisGameObject.AddClickable()thisGameObject.Clickable.OnClick(OnClick)
AmbientIntensity
float AmbientIntensitygetset
How much the light from the Ambient Source affects the Scene.
Space.RenderSettings.AmbientIntensity =1
--the below script will make a slider change the Render Setting's Ambient IntensitythisGameObject = Space.Host.ExecutingObjectslider = Space.Host.GetReference("slider").UISlider --add reference to Scripting RuntimeOVC=function()Space.RenderSettings.AmbientIntensity = slider.Value *5-- from 0 to 5endslider.OnValueChanged(OVC)
--clicking the object will open a color picker that changes the Ambient Light ColorthisGameObject = Space.Host.ExecutingObjectoriginalColor = Space.RenderSettings.AmbientLightOnChange=function(SColor) Space.RenderSettings.AmbientLight = SColorendOnSelect=function(SColor) Space.RenderSettings.AmbientLight = SColorendOnCancel=function() Space.RenderSettings.AmbientLight = originalColorendOnClick=function()Space.Dialogues.ColorPicker("title","okbutton", OnChange, OnSelect, OnCancel, originalColor)endthisGameObject.AddClickable()thisGameObject.Clickable.OnClick(OnClick)
--clicking the object will open a color picker that changes the Ambient Ground ColorthisGameObject = Space.Host.ExecutingObjectoriginalColor = Space.RenderSettings.AmbientGroundColorOnChange=function(SColor) Space.RenderSettings.AmbientGroundColor = SColorendOnSelect=function(SColor) Space.RenderSettings.AmbientGroundColor = SColorendOnCancel=function() Space.RenderSettings.AmbientGroundColor = originalColorendOnClick=function()Space.Dialogues.ColorPicker("title","okbutton", OnChange, OnSelect, OnCancel, originalColor)endthisGameObject.AddClickable()thisGameObject.Clickable.OnClick(OnClick)
--clicking the object will open a color picker that changes the Ambient Equator ColorthisGameObject = Space.Host.ExecutingObjectoriginalColor = Space.RenderSettings.AmbientEquatorColorOnChange=function(SColor) Space.RenderSettings.AmbientEquatorColor = SColorendOnSelect=function(SColor) Space.RenderSettings.AmbientEquatorColor = SColorendOnCancel=function() Space.RenderSettings.AmbientEquatorColor= originalColorendOnClick=function()Space.Dialogues.ColorPicker("title","okbutton", OnChange, OnSelect, OnCancel, originalColor)endthisGameObject.AddClickable()thisGameObject.Clickable.OnClick(OnClick)
--clicking the object will open a color picker that changes the Ambient Sky ColorthisGameObject = Space.Host.ExecutingObjectoriginalColor = Space.RenderSettings.AmbientSkyColorOnChange=function(SColor) Space.RenderSettings.AmbientSkyColor = SColorendOnSelect=function(SColor) Space.RenderSettings.AmbientSkyColor = SColorendOnCancel=function() Space.RenderSettings.AmbientSkyColor = originalColorendOnClick=function()Space.Dialogues.ColorPicker("title","okbutton", OnChange, OnSelect, OnCancel, originalColor)endthisGameObject.AddClickable()thisGameObject.Clickable.OnClick(OnClick)
--clicking this object will toggle between 4 Ambient ModesthisGameObject = Space.Host.ExecutingObjectOnClick=function()if Space.RenderSettings.AmbientMode==4then Space.RenderSettings.AmbientMode=1else Space.RenderSettings.AmbientMode = Space.RenderSettings.AmbientMode +1endendthisGameObject.AddClickable()thisGameObject.Clickable.OnClick(OnClick)
FogEndDistance
float FogEndDistancegetset
The ending distance of linear fog.
Space.RenderSettings.FogEndDistance=300
--the below script will make a slider change the Render Setting's Fog End DistancethisGameObject = Space.Host.ExecutingObjectslider = Space.Host.GetReference("slider").UISlider --add reference to Scripting RuntimeOVC=function()Space.RenderSettings.FogEndDistance = (slider.Value *170) +30-- from 30 to 200endslider.OnValueChanged(OVC)
FogStartDistance
float FogStartDistancegetset
The starting distance of linear fog.
Space.RenderSettings.FogStartDistance=10
--the below script will make a slider change the Render Setting's Fog Start DistancethisGameObject = Space.Host.ExecutingObjectslider = Space.Host.GetReference("slider").UISlider --add reference to Scripting RuntimeOVC=function()Space.RenderSettings.FogStartDistance = (slider.Value *10) -- from 0 to 10endslider.OnValueChanged(OVC)
FogDensity
float FogDensitygetset
The density of the exponential fog.
Space.RenderSettings.FogDensity=10
--the below script will make a slider change the Render Setting's Fog DensitythisGameObject = Space.Host.ExecutingObjectslider = Space.Host.GetReference("slider").UISlider --add reference to Scripting RuntimeOVC=function()Space.RenderSettings.FogDensity = (slider.Value *10) -- from 0 to 10endslider.OnValueChanged(OVC)
--clicking the object will open a color picker that changes the Fog colorthisGameObject = Space.Host.ExecutingObjectoriginalColor = Space.RenderSettings.FogColorOnChange=function(SColor) Space.RenderSettings.FogColor = SColorendOnSelect=function(SColor) Space.RenderSettings.FogColor = SColorendOnCancel=function() Space.RenderSettings.FogColor = originalColorendOnClick=function()Space.Dialogues.ColorPicker("title","okbutton", OnChange, OnSelect, OnCancel, originalColor)endthisGameObject.AddClickable()thisGameObject.Clickable.OnClick(OnClick)
--clicking this object will toggle between 3 Fog ModesthisGameObject = Space.Host.ExecutingObjectOnClick=function()if Space.RenderSettings.FogMode==3then Space.RenderSettings.FogMode=1else Space.RenderSettings.FogMode = Space.RenderSettings.FogMode +1endendthisGameObject.AddClickable()thisGameObject.Clickable.OnClick(OnClick)
Fog
bool Foggetset
Whether Fog is enabled
Space.RenderSettings.Fog=true
--clicking this object will toggle enable/disable FogthisGameObject = Space.Host.ExecutingObjectOnClick=function()Space.RenderSettings.Fog =not Space.RenderSettings.FogendthisGameObject.AddClickable()thisGameObject.Clickable.OnClick(OnClick)
AmbientSkyboxAmount
float AmbientSkyboxAmountgetset
How much the light from the Ambient Source affects the Scene.
Space.RenderSettings.AmbientSkyboxAmount=10
--the below script will make a slider change the Render Setting's Ambient Skybox AmountthisGameObject = Space.Host.ExecutingObjectslider = Space.Host.GetReference("slider").UISlider --add reference to Scripting RuntimeOVC=function()Space.RenderSettings.AmbientSkyboxAmount = (slider.Value *10) -- from 0 to 10endslider.OnValueChanged(OVC)
DefaultReflectionMode
int DefaultReflectionModegetset
Ambient lighting mode. Skybox = 0. Custom = 1.
Space.RenderSettings.DefaultReflectionMode =1
--clicking this object will toggle between two Default Reflection ModesthisGameObject = Space.Host.ExecutingObjectOnClick=function()if Space.RenderSettings.DefaultReflectionMode==1then Space.RenderSettings.DefaultReflectionMode=0else Space.RenderSettings.DefaultReflectionMode=1endendthisGameObject.AddClickable()thisGameObject.Clickable.OnClick(OnClick)