PAPER2UMaterialExpressionSpriteTextureSampler

This is a texture sampler 2D with a special automatically defined parameter name. The texture specified here will be replaced by the SourceTexture or an AdditionalSourceTextures entry of a Paper2D sprite if this material is used on a sprite.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

Paper2D

Header

/Engine/Plugins/2D/Paper2D/Source/Paper2D/Public/MaterialExpressionSpriteTextureSampler.h

Include

#include "MaterialExpressionSpriteTextureSampler.h"

Syntax

UCLASS(
       HideCategories=(MaterialExpressionTextureSampleParameter, MaterialExpressionSpriteTextureSampler))
class PAPER2UMaterialExpressionSpriteTextureSampler : public UMaterialExpressionTextureSampleParameter2D

Remarks

This is a texture sampler 2D with a special automatically defined parameter name. The texture specified here will be replaced by the SourceTexture or an AdditionalSourceTextures entry of a Paper2D sprite if this material is used on a sprite.

Variables

Name Description

Public variable UProperty Category, EditAnywhere, Meta

int32

 

AdditionalSlotIndex

This is the slot index into the AdditionalSourceTextures array.

Public variable UProperty Category, EditAnywhere

bool

 

bSampleAdditionalTextures

Is this a sampler for the default SourceTexture or the AdditionalSourceTextures list?

Public variable UProperty Category, EditAnywhere

FText

 

SlotDisplayName

Friendly label for the texture slot, displayed in the Sprite Editor if not empty.

Constructors

Name Description

Public function

PAPER2UMaterialExpressionSpriteTextureSampler

(
    const FObjectInitializer& ObjectIn...
)

Overridden from UMaterialExpression

Name Description

Public function Virtual Const

bool

 

CanRenameNode()

Can this node be renamed?

Public function Virtual Const

void

 

GetCaption

(
    TArray< FString >& OutCaptions
)

Returns the text to display on the material expression (in the material editor).

Public function Virtual

void

 

GetExpressionToolTip

(
    TArray< FString >& OutToolTip
)

Get a tooltip for the expression itself.

Public function Virtual Const

FText

 

GetKeywords()

Returns the keywords that should be used when searching for this expression

Overridden from UObject

Name Description

Public function Virtual

void

 

PostEditChangeProperty

(
    FPropertyChangedEvent& PropertyCha...
)

Called when a property on this object has been modified externally