Navigation
API > API/Plugins > API/Plugins/MutableRuntime > API/Plugins/MutableRuntime/MuR
Inheritance Hierarchy
- RefCounted
- Resource
- Layout
References
| Module | MutableRuntime |
| Header | /Engine/Plugins/Mutable/Source/MutableRuntime/Public/MuR/Layout.h |
| Include | #include "MuR/Layout.h" |
Syntax
class Layout : public mu::Resource
Remarks
It contains the information about what blocks are defined in a texture layout (texture coordinates set from a mesh). It is usually not necessary to use this objects, except for some advanced cases.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< FLayoutBlock > | Blocks | ||
| FIntVector2 | MaxSize | Maximum size in layout blocks that this layout can grow to. | |
| EReductionMethod | ReductionMethod | ||
| FIntVector2 | Size | ||
| EPackStrategy | Strategy | Packing strategy. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Layout () |
Life cycle. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
~Layout () |
Forbidden. Manage with the Ptr<> template. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| Ptr< Layout > | Clone () |
Deep clone this layout. | |
| int32 | FindBlock
(
uint64 Id |
Find a block by id. | |
| int32 | Return the number of blocks in this layout. | ||
| FIntPoint | GetGridSize () |
Get the resolution of the grid where the blocks are defined. | |
| EPackStrategy | Set the texture layout packing strategy. | ||
| void | GetMaxGridSize
(
int32* SizeX, |
Get the maximum resolution of the grid where the blocks are defined. | |
| bool | |||
| bool | Return true if the layout is a single block filling all area. | ||
| void | Serialise
(
OutputArchive& arch |
||
| void | Serialise
(
const Layout* p, |
Serialisation. | |
| void | SetBlockCount
(
int32 |
Set the number of blocks in this layout. | |
| void | SetGridSize
(
int32 SizeX, |
Get the resolution of the grid where the blocks are defined. It must be bigger than 0 on each axis. | |
| void | Set the texture layout packing strategy By default the texture layout packing strategy is set to resizable layout | ||
| void | SetMaxGridSize
(
int32 SizeX, |
Get the maximum resolution of the grid where the blocks are defined. | |
| Ptr< Layout > | StaticUnserialise
(
InputArchive& arch |
||
| void | Unserialise
(
InputArchive& arch |
Overridden from Resource
| Type | Name | Description | |
|---|---|---|---|
| int32 | GetDataSize () |
Return the size in bytes of all the LODs of the image. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator==
(
const Layout& other |
Full compare. |