Navigation
API > API/Runtime > API/Runtime/DatasmithCore
An area light is an emissive shape (light shape) with a light component (light type)
| Name | IDatasmithAreaLightElement |
| Type | class |
| Header File | /Engine/Source/Runtime/Datasmith/DatasmithCore/Public/IDatasmithSceneElements.h |
| Include Path | #include "IDatasmithSceneElements.h" |
Syntax
class IDatasmithAreaLightElement : public IDatasmithSpotLightElement
Implements Interfaces
- IDatasmithSpotLightElement
- IDatasmithPointLightElement
- IDatasmithLightActorElement
- IDatasmithActorElement
- IDatasmithElement
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
float GetLength() |
IDatasmithSceneElements.h | ||
EDatasmithLightShape GetLightShape() |
Get the light shape Rectangle/Sphere/Disc/Cylinder | IDatasmithSceneElements.h | |
EDatasmithAreaLightType GetLightType() |
IDatasmithSceneElements.h | ||
float GetWidth() |
IDatasmithSceneElements.h | ||
void SetLength
(
float InLength |
Set the area light shape size on the X axis | IDatasmithSceneElements.h | |
void SetLightShape
(
EDatasmithLightShape Shape |
Set the light shape Rectangle/Sphere/Disc/Cylinder | IDatasmithSceneElements.h | |
void SetLightType
(
EDatasmithAreaLightType LightType |
Set the type of light for an area light: Point/Spot/Rect | IDatasmithSceneElements.h | |
void SetWidth
(
float InWidth |
Set the area light shape size on the Y axis | IDatasmithSceneElements.h |