Navigation
API > API/Plugins > API/Plugins/DatasmithImporter
| Name | UDatasmithLightActorElement |
| Type | class |
| Header File | /Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Public/ObjectElements/DatasmithUObjectElements.h |
| Include Path | #include "ObjectElements/DatasmithUObjectElements.h" |
Syntax
UCLASS ()
class UDatasmithLightActorElement : public UDatasmithActorElement
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UDatasmithObjectElement → UDatasmithActorElement → UDatasmithLightActorElement
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| LightActorElement | TWeakPtr< IDatasmithLightActorElement > | ObjectElements/DatasmithUObjectElements.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FLinearColor GetColor() |
Get light color on linear mode | ObjectElements/DatasmithUObjectElements.h |
|
TWeakPtr< IDatasmithLightActorElement > GetDatasmithLightActorElement() |
ObjectElements/DatasmithUObjectElements.h | ||
float GetIesBrightnessScale() |
Get the Ies brightness multiplier | ObjectElements/DatasmithUObjectElements.h |
|
FString GetIesFile() |
Get the path of the Ies definition file | ObjectElements/DatasmithUObjectElements.h |
|
float GetIntensity() |
Get light intensity | ObjectElements/DatasmithUObjectElements.h |
|
float GetTemperature() |
Get the light temperature in Kelvin | ObjectElements/DatasmithUObjectElements.h |
|
bool GetUseIes() |
Set if this light is controlled by Ies definition file | ObjectElements/DatasmithUObjectElements.h |
|
bool GetUseIesBrightness() |
Get if the emissive amount of the ies is controlled by the brightness scale | ObjectElements/DatasmithUObjectElements.h |
|
bool GetUseTemperature() |
Get if the light color is controlled by temperature | ObjectElements/DatasmithUObjectElements.h |
|
bool IsEnabled () |
Return true on light enabled, false otherwise | ObjectElements/DatasmithUObjectElements.h |
|
void SetColor
(
FLinearColor Color |
Set light color on linear mode | ObjectElements/DatasmithUObjectElements.h |
|
void SetDatasmithLightActorElement
(
const TSharedPtr< IDatasmithLightActorElement >& InElement |
ObjectElements/DatasmithUObjectElements.h | ||
void SetEnabled
(
bool bIsEnabled |
Set enable property of the light | ObjectElements/DatasmithUObjectElements.h |
|
void SetIesBrightnessScale
(
float IesBrightnessScale |
Set the Ies brightness multiplier | ObjectElements/DatasmithUObjectElements.h |
|
void SetIesFile
(
const FString& IesFile |
Set the path of the Ies definition file | ObjectElements/DatasmithUObjectElements.h |
|
void SetIntensity
(
float Intensity |
Set light intensity | ObjectElements/DatasmithUObjectElements.h |
|
void SetTemperature
(
float Temperature |
Set the light temperature in Kelvin | ObjectElements/DatasmithUObjectElements.h |
|
void SetUseIes
(
bool bUseIes |
Get if this light is controlled by Ies definition file | ObjectElements/DatasmithUObjectElements.h |
|
void SetUseIesBrightness
(
bool bUseIesBrightness |
Set if the emissive amount of the ies is controlled by the brightness scale | ObjectElements/DatasmithUObjectElements.h |
|
void SetUseTemperature
(
bool bUseTemperature |
Set if the light color is controlled by temperature | ObjectElements/DatasmithUObjectElements.h |
|
Overridden from UDatasmithActorElement
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TWeakPtr< IDatasmithActorElement > GetIDatasmithActorElement() |
ObjectElements/DatasmithUObjectElements.h |
Overridden from UDatasmithObjectElement
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TWeakPtr< IDatasmithElement > GetIDatasmithElement() |
TODO: They are not covariant because of the TWeakPtr, can't override in child. | ObjectElements/DatasmithUObjectElements.h | |
virtual bool IsElementValid() |
Is the Element still valid for the Datasmith Scene | ObjectElements/DatasmithUObjectElements.h |