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
Constructors
| Type | Name | Description | |
|---|---|---|---|
UModel
(
const FObjectInitializer& ObjectInitializer |
Constructors. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| 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 * | 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. | |
| 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. | |
| void | PreSave
(
FObjectPreSaveContext SaveContext |
Presave function. | |
| bool | Rename
(
const TCHAR* InName, |
Rename this object to a unique name, or change its outer. | |
| void | Handles reading, writing, and reference collecting using FArchive. |
Constants
| Name | Description |
|---|---|
| BSPTexelScale |