Sinespace Client  2023.2.17543
Client-side scripting for Sinespace
SineSpace.Scripting.Components.SReflectionProbe Class Reference
Inheritance diagram for SineSpace.Scripting.Components.SReflectionProbe:
ScriptClassComponent< ReflectionProbe >

Public Member Functions

void RenderProbe ()
 Refreshes the probe's cube map. More...
 

Properties

SVector Center [get, set]
 The center of the box area in which reflections will be applied to the objects. Measured in the probe’s local space. More...
 
SVector Size [get, set]
 The size of the box area in which reflections will be applied to the objects. Measured in the probe’s local space. More...
 
- Properties inherited from ScriptClassComponent< ReflectionProbe >
SGameObject GameObject [get]
 Return the GameObject which component added. More...
 

Member Function Documentation

◆ RenderProbe()

void SineSpace.Scripting.Components.SReflectionProbe.RenderProbe ( )

Refreshes the probe's cube map.

&ndash;get reflection probe in the scene
probe = Space.Scene.Find(“Reflection”).ReflectionProbe
&ndash;Render scene to this probe’s cubemap
probe.RenderProbe()

Property Documentation

◆ Center

SVector SineSpace.Scripting.Components.SReflectionProbe.Center
getset

The center of the box area in which reflections will be applied to the objects. Measured in the probe’s local space.

&ndash;get reflection probe in the scene
probe = Space.Scene.Find(“Reflection”).ReflectionProbe
&ndash;set reflection probe center to target transform position
probe.Center = Space.Scene.Find(“TargetTransform”).WorldPosition

◆ Size

SVector SineSpace.Scripting.Components.SReflectionProbe.Size
getset

The size of the box area in which reflections will be applied to the objects. Measured in the probe’s local space.

&ndash;get reflection probe in the scene
probe = Space.Scene.Find(“Reflection”).ReflectionProbe
&ndash;set cube size of reflection probe to 50
probe.Size = Vector.New(50,50,50)