Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Kismet
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UBlueprintFunctionLibrary
- UKismetRenderingLibrary
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Kismet/KismetRenderingLibrary.h |
| Include | #include "Kismet/KismetRenderingLibrary.h" |
Syntax
class UKismetRenderingLibrary : public UBlueprintFunctionLibrary
Constructors
| Type | Name | Description | |
|---|---|---|---|
UKismetRenderingLibrary
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | BeginDrawCanvasToRenderTarget
(
UObject* WorldContextObject, |
Returns a Canvas object that can be used to draw to the specified render target. | |
| void | BreakSkinWeightInfo
(
FSkelMeshSkinWeightInfo InWeight, |
Break FSkelMeshSkinWeightInfo | |
| FMatrix | CalculateProjectionMatrix
(
const FMinimalViewInfo& MinimalViewInfo |
Calculates the projection matrix using this view info's aspect ratio (regardless of bConstrainAspectRatio) | |
| void | ClearRenderTarget2D
(
UObject* WorldContextObject, |
Clears the specified render target with the given ClearColor. | |
| void | ConvertRenderTargetToTexture2DEditorOnly
(
UObject* WorldContextObject, |
Copies the contents of a render target to a UTexture2D Only works in the editor | |
| UTextureRenderTarget2D * | CreateRenderTarget2D
(
UObject* WorldContextObject, |
Creates a new render target and initializes it to the specified dimensions | |
| UTextureRenderTarget2DArray * | CreateRenderTarget2DArray
(
UObject* WorldContextObject, |
Creates a new render target array and initializes it to the specified dimensions | |
| UTextureRenderTargetVolume * | CreateRenderTargetVolume
(
UObject* WorldContextObject, |
Creates a new volume render target and initializes it to the specified dimensions | |
| void | DrawMaterialToRenderTarget
(
UObject* WorldContextObject, |
Renders a quad with the material applied to the specified render target. | |
| void | EnablePathTracing
(
bool bEnablePathTracer |
Enables or disables the path tracer for the current Game Viewport. | |
| void | EndDrawCanvasToRenderTarget
(
UObject* WorldContextObject, |
Must be paired with a BeginDrawCanvasToRenderTarget to complete rendering to a render target. | |
| void | ExportRenderTarget
(
UObject* WorldContextObject, |
Exports a render target as a HDR or PNG image onto the disk (depending on the format of the render target) | |
| void | ExportTexture2D
(
UObject* WorldContextObject, |
Exports a Texture2D as a HDR image onto the disk. | |
| UTexture2D * | ImportBufferAsTexture2D
(
UObject* WorldContextObject, |
Imports a texture from a buffer and creates Texture2D from it. | |
| UTexture2D * | ImportFileAsTexture2D
(
UObject* WorldContextObject, |
Imports a texture file from disk and creates Texture2D from it. | |
| FSkelMeshSkinWeightInfo | MakeSkinWeightInfo
(
int32 Bone0, |
Create FSkelMeshSkinWeightInfo | |
| bool | ReadRenderTarget
(
UObject* WorldContextObject, |
Incredibly inefficient and slow operation! Reads entire render target as sRGB color and returns a linear array of sRGB colors. | |
| FColor | ReadRenderTargetPixel
(
UObject* WorldContextObject, |
Incredibly inefficient and slow operation! Read a value as sRGB color from a render target using integer pixel coordinates. | |
| bool | ReadRenderTargetRaw
(
UObject* WorldContextObject, |
Incredibly inefficient and slow operation! Read entire texture as-is from a render target. | |
| FLinearColor | ReadRenderTargetRawPixel
(
UObject* WorldContextObject, |
Incredibly inefficient and slow operation! Read a value as-is from a render target using integer pixel coordinates. | |
| TArray< FLinearColor > | ReadRenderTargetRawPixelArea
(
UObject* WorldContextObject, |
Incredibly inefficient and slow operation! Read an area of values as-is from a render target using a rectangle defined by integer pixel coordinates. | |
| FLinearColor | ReadRenderTargetRawUV
(
UObject* WorldContextObject, |
Incredibly inefficient and slow operation! Read a value as-is from a render target using UV [0,1]x[0,1] coordinates. | |
| TArray< FLinearColor > | ReadRenderTargetRawUVArea
(
UObject* WorldContextObject, |
Incredibly inefficient and slow operation! Read an area of values as-is from a render target using a rectangle defined by UV [0,1]x[0,1] coordinates. | |
| FColor | ReadRenderTargetUV
(
UObject* WorldContextObject, |
Incredibly inefficient and slow operation! Read a value as sRGB color from a render target using UV [0,1]x[0,1] coordinates. | |
| void | Forces the path tracer to restart sample accumulation. | ||
| void | ReleaseRenderTarget2D
(
UTextureRenderTarget2D* TextureRenderTarget |
Manually releases GPU resources of a render target. | |
| UTexture2D * | RenderTargetCreateStaticTexture2DEditorOnly
(
UTextureRenderTarget2D* RenderTarget, |
Creates a new Static Texture from a Render Target 2D. Only works in the editor | |
| void | ResizeRenderTarget2D
(
UTextureRenderTarget2D* TextureRenderTarget, |
Changes the resolution of a render target. | |
| void | SetCastInsetShadowForAllAttachments
(
UPrimitiveComponent* PrimitiveComponent, |
Set the inset shadow casting state of the given component and all its child attachments. |