G1R AngelScript
Scripting reference for the Gothic 1 Remake
Loading...
Searching...
No Matches
FMaterialSpriteElement Struct Reference

Public Member Functions

Functions
bool GetbSizeIsInScreenSpace () const
 Whether the size is defined in screen-space or world-space.
void SetbSizeIsInScreenSpace (bool Value)
 Whether the size is defined in screen-space or world-space.
FMaterialSpriteElement & opAssign (FMaterialSpriteElement Other)

Public Attributes

MaterialSpriteElement
UCurveFloat DistanceToOpacityCurve
 A curve that maps distance on the X axis to the sprite opacity on the Y axis.
float32 BaseSizeX
 The base width of the sprite, multiplied with the DistanceToSizeCurve.
float32 BaseSizeY
 The base height of the sprite, multiplied with the DistanceToSizeCurve.
UCurveFloat DistanceToSizeCurve
 A curve that maps distance on the X axis to the sprite size on the Y axis.
UMaterialInterface Material
 The material that the sprite is rendered with.
Variables
bool bSizeIsInScreenSpace

Member Function Documentation

◆ GetbSizeIsInScreenSpace()

bool GetbSizeIsInScreenSpace ( ) const

Whether the size is defined in screen-space or world-space.

◆ opAssign()

◆ SetbSizeIsInScreenSpace()

void SetbSizeIsInScreenSpace ( bool Value)

Whether the size is defined in screen-space or world-space.

Member Data Documentation

◆ BaseSizeX

float32 BaseSizeX

The base width of the sprite, multiplied with the DistanceToSizeCurve.

◆ BaseSizeY

float32 BaseSizeY

The base height of the sprite, multiplied with the DistanceToSizeCurve.

◆ bSizeIsInScreenSpace

bool bSizeIsInScreenSpace

◆ DistanceToOpacityCurve

UCurveFloat DistanceToOpacityCurve

A curve that maps distance on the X axis to the sprite opacity on the Y axis.

◆ DistanceToSizeCurve

UCurveFloat DistanceToSizeCurve

A curve that maps distance on the X axis to the sprite size on the Y axis.

◆ Material

The material that the sprite is rendered with.