FMaterialShadingModelField

Wrapper for a bitfield of shading models.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/EngineTypes.h

Include

#include "Engine/EngineTypes.h"

Syntax

struct FMaterialShadingModelField

Remarks

Wrapper for a bitfield of shading models. A material contains one of these to describe what possible shading models can be used by that material.

Constructors

Functions

Name Description

Public function

void

 

AddShadingModel

(
    EMaterialShadingModel InShadingMode...
)

Public function

void

 

ClearShadingModels()

Public function Const

int32

 

CountShadingModels()

Public function Const

EMaterialSha...

 

GetFirstShadingModel()

Public function Const

uint16

 

GetShadingModelField()

Public function Const

bool

 

HasAnyShadingModel

(
    const TArray< EMaterialShadingModel...
)

Check if any of the given shading models are present.

Public function Const

bool

 

HasOnlyShadingModel

(
    EMaterialShadingModel InShadingMode...
)

Public function Const

bool

 

HasShadingModel

(
    EMaterialShadingModel InShadingMode...
)

Public function Const

bool

 

IsLit()

Public function Const

bool

 

IsUnlit()

Public function Const

bool

 

IsValid()

Public function

void

 

RemoveShadingModel

(
    EMaterialShadingModel InShadingMode...
)

Operators

Name Description

Public function Const

bool

 

operator!=

(
    const FMaterialShadingModelField& ...
)

Public function Const

bool

 

operator==

(
    const FMaterialShadingModelField& ...
)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss