PlayCanvasSceneCreator 1.0.9
Loading...
Searching...
No Matches
Playcanvas.Properties.Light Class Reference

Public Types

enum  LightType { directional , spot , point }
 

Public Attributes

bool castShadows
 
See also
UnityProperties.UnityEngine.Light.shadows

 
bool isStatic = false
 
See also
UnityProperties.UnityEngine.Light.isStatic

 
bool enabled
 
float range = 8
 
See also
UnityProperties.UnityEngine.Light.range

 
float[] color
 
See also
UnityProperties.UnityEngine.Light.color

 
float outerConeAngle = 45
 
See also
UnityProperties.UnityEngine.Light.spotAngle

 
bool affectDynamic = true
 
See also
UnityProperties.UnityEngine.Light.lightmapBakeType



 
float intensity
 
See also
UnityProperties.UnityEngine.Light.intensity

 
float innerConeAngle = 40
 
See also
UnityProperties.UnityEngine.Light.innerSpotAngle

 
int? cookieAsset = null
 
See also
UnityProperties.UnityEngine.Light.cookie

 
int shadowResolution = 1024
 
See also
UnityProperties.UnityEngine.Light.shadowResolution, UnityEngine.QualitySettings.shadowResolution



 
string type
 
See also
UnityProperties.UnityEngine.Light.type

 
int[] layers = new int[] { 0 }
 
See also
UnityProperties.UnityEngine.Light.cullingMask

 

Detailed Description

Member Data Documentation

◆ affectDynamic

bool Playcanvas.Properties.Light.affectDynamic = true

See also
UnityProperties.UnityEngine.Light.lightmapBakeType


set true if lightmapBakeType is not Baked

◆ castShadows

bool Playcanvas.Properties.Light.castShadows

See also
UnityProperties.UnityEngine.Light.shadows

if shadows is not LightShadows.None then castShadows set true

◆ shadowResolution

int Playcanvas.Properties.Light.shadowResolution = 1024

See also
UnityProperties.UnityEngine.Light.shadowResolution, UnityEngine.QualitySettings.shadowResolution


Low : 256
Medium : 512
High : 1024
VeryHigh : 2048

◆ type

string Playcanvas.Properties.Light.type

See also
UnityProperties.UnityEngine.Light.type

case UnityProperties.UnityEngine.LightType.Point to omni
case UnityProperties.UnityEngine.LightType.Spot to spot
others cases to directional