UPassthroughMaterialUpdateComponent

Helper component that automatically pick the correct passthrough material to use and handles updating the camera texture in the tick.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

UObjectBase

UObjectBaseUtility

UObject

UActorComponent

UPassthroughMaterialUpdateComponent

References

Module

ARUtilities

Header

/Engine/Plugins/Runtime/AR/ARUtilities/Source/ARUtilities/Public/PassthroughMaterialUpdateComponent.h

Include

#include "PassthroughMaterialUpdateComponent.h"

Syntax

UCLASS(BlueprintType, ClassGroup="AR", Meta=(BlueprintSpawnableComponent))
class UPassthroughMaterialUpdateComponent : public UActorComponent

Remarks

Helper component that automatically pick the correct passthrough material to use and handles updating the camera texture in the tick.

Variables

Name Description

Protected variable UProperty Category, EditAnywhere

FLinearColor

 

PassthroughDebugColor

The debug color used to modulate the passthrough material.

Protected variable UProperty Category, EditAnywhere

UMaterialInterf...

 

PassthroughMaterial

Which material to use for a regular camera texture

Protected variable UProperty Category, EditAnywhere

UMaterialInterf...

 

PassthroughMaterialExternalTexture

Which material to use for an external camera texture

Protected variable UProperty Category, EditAnywhere

EARTextureType

 

TextureType

Which AR texture to use as the camera texture

Constructors

Functions

Name Description

Public function UFunction BlueprintCallable, Category

void

 

AddAffectedComponent

(
    UPrimitiveComponent* InCompone...
)

Add a component to be affected by the passthrough rendering

Public function UFunction BlueprintCallable, Category

void

 

RemoveAffectedComponent

(
    UPrimitiveComponent* InCompone...
)

Remove the component from passthrough rendering

Public function UFunction BlueprintCallable, Category

void

 

SetPassthroughDebugColor

(
    FLinearColor NewDebugColor
)

Update the passthrough debug color

Overridden from UActorComponent

Name Description

Public function Virtual

void

 

TickComponent

(
    float DeltaTime,
    ELevelTick TickType,
    FActorComponentTickFunction* T...
)

Function called every frame on this ActorComponent.