Navigation
API > API/Runtime > API/Runtime/Engine
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UModel
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/Model.h |
| Include | #include "Model.h" |
Syntax
class UModel : public UObject
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bCachedOwnerTransformValid | Specifies whether the above cached transform is valid | |
| bool | bInvalidForStaticLighting | True if static lighting now can not be validly built for this model | |
| bool | bOnlyRebuildMaterialIndexBuffers | True if only the material index buffers should be rebuilt when committing model surfaces | |
| FBoxSphereBounds | Bounds | ||
| TArray< class FBSPSurfaceStaticLighting * > | CachedMappings | Cache the mappings that are going to be calculated during lighting (we delay applying to join mappings into bigger lightmaps) | |
| bool | InvalidSurfaces | True if surfaces in the model have been changed without calling ULevel::CommitModelSurfaces. | |
| TArray< int32 > | LeafHulls | ||
| TArray< FLeaf > | Leaves | ||
| FGuid | LightingGuid | Unique ID for this model, used for caching during distributed lighting | |
| ULevel * | LightingLevel | The level used to generate NodeGroups | |
| TArray< FLightmassPrimitiveSettings > | LightmassSettings | ||
| bool | Linked | ||
| TMap< UMaterialInterface *, TUniquePtr< FRawIndexBuffer16or32 > > | MaterialIndexBuffers | An index buffer for each material used by the model, containing all the nodes with that material applied. | |
| TMap< int32, FNodeGroup * > | NodeGroups | A map of NodeGroup ID to the NodeGroup object | |
| TArray< FBspNode > | Nodes | ||
| int32 | NumIncompleteNodeGroups | How many node groups still need to be completed before we start joining by brightness, etc | |
| int32 | NumSharedSides | ||
| uint32 | NumUniqueVertices | The number of unique vertices. | |
| FVector3f | OwnerLocationWhenLastBuilt | Cached transform of the owner brush when the geometry was last built | |
| FRotator | OwnerRotationWhenLastBuilt | ||
| FVector3f | OwnerScaleWhenLastBuilt | ||
| TArray< FVector3f > | Points | ||
| TObjectPtr< UPolys > | Polys | Arrays and subobjects. | |
| FRenderCommandFence | ReleaseResourcesFence | A fence which is used to keep track of the rendering thread releasing the model resources. | |
| bool | RootOutside | Other variables. | |
| TArray< FBspSurf > | Surfs | ||
| TArray< FVector3f > | Vectors | ||
| FModelVertexBuffer | VertexBuffer | A vertex buffer containing the vertices for all nodes in the UModel. | |
| TArray< FVert > | Verts |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UModel
(
FVTableHelper& Helper |
DO NOT USE. This constructor is for internal usage only for hot-reload purposes. | ||
UModel
(
const FObjectInitializer& ObjectInitializer |
Constructors. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | __DefaultConstructor
(
const FObjectInitializer& X |
||
| UObject * | __VTableCtorCaller
(
FVTableHelper& Helper |
||
| void | AddReferencedObjects
(
UObject* InThis, |
||
| void | ApplyStaticLighting
(
ULevel* LightingScenario |
Applies all of the finished lighting cached in the NodeGroups | |
| void | ApplyWorldOffset
(
const FVector& InOffset, |
Apply world origin changes | |
| void | Begins releasing the model's resources. | ||
| void | BuildBound () |
Build the model's bounds (min and max). | |
| int32 | Initialize vertex buffer data from UModel data Returns the number of vertices in the vertex buffer. | ||
| void | |||
| void | Clears local (non RHI) data associated with MaterialIndexBuffers | ||
| void | EmptyModel
(
int32 EmptySurfInfo, |
||
| ABrush * | FindBrush
(
const FVector3f& SourcePoint |
Find the source brush actor associated with this point, or NULL if the point does not lie on a BSP surface. | |
| float | FindNearestVertex
(
const FVector3f& SourcePoint, |
||
| FVector | GetCenter () |
Compute the "center" location of all the verts | |
| float | |||
| void | GetNodeBoundingBox
(
const FBspNode& Node, |
Creates a bounding box for the passed in node | |
| void | GetSurfacePlanes
(
const AActor* Owner, |
||
| void | GroupAllNodes
(
ULevel* Level, |
Groups all nodes in the model into NodeGroups (cached in the NodeGroups object) | |
| bool | |||
| void | Initialize
(
ABrush* Owner, |
||
| void | Initialize () |
||
| void | ModifyAllSurfs
(
bool UpdateBrushes |
||
| void | ModifySelectedSurfs
(
bool UpdateBrushes |
UModel transactions. | |
| void | ModifySurf
(
int32 InIndex, |
||
| void | PrecomputeSphereFilter
(
const FPlane& Sphere |
||
| void | SetGlobalBSPTexelScale
(
float InBSPTexelScale |
Sets the global texel scale used for BSP UV's | |
| void | ShrinkModel () |
Shrink all stuff to its minimum size. | |
| UClass * | StaticClass () |
Returns a UClass object representing this class at runtime | |
| EClassCastFlags | Returns the static cast flags for this class | ||
| const TCHAR * | Returns the package this class belongs in | ||
| void | |||
| void | Transform this model by its coordinate system. | ||
| void | Begins initializing the model's VertexBuffer. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | BeginDestroy () |
Called before destroying the object. | |
| void | GetResourceSizeEx
(
FResourceSizeEx& CumulativeResourceSize |
Get the size of the object/resource for use in memory tools or to display to artists/LDs in the Editor This is the extended version which separates up the used memory into different memory regions (the actual definition of which may be platform specific). | |
| bool | IsAsset () |
Returns true if this object is considered an asset. | |
| bool | Called to check if the object is ready for FinishDestroy. | ||
| bool | Modify
(
bool bAlwaysMarkDirty |
Note that the object will be modified. | |
| void | PostDuplicate
(
bool bDuplicateForPIE |
Called after duplication & serialization and before PostLoad. | |
| void | PostEditUndo () |
Called after applying a transaction to the object. | |
| void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. | |
| bool | Rename this object to a unique name, or change its outer. | ||
| void | Handles reading, writing, and reference collecting using FArchive. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| void | operator delete
(
void* InMem |
Eliminate V1062 warning from PVS-Studio while keeping MSVC and Clang happy. | |
| void * | operator new
(
const size_t InSize, |
For internal use only; use StaticConstructObject() to create new objects. | |
| void * | operator new
(
const size_t InSize, |
For internal use only; use StaticConstructObject() to create new objects. |
Typedefs
Constants
| Name | Description |
|---|---|
| BSPTexelScale | |
| StaticClassFlags | Bitwise union of EClassFlags pertaining to this class. |