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

(
    TArray< EMaterialShadingModel > InS...
)

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& ...
)

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback