Navigation
API > API/Runtime > API/Runtime/Engine
StaticMeshActor is an instance of a UStaticMesh in the world. Static meshes are geometry that do not animate or otherwise deform, and are more efficient to render than other types of geometry. Static meshes dragged into the level from the Content Browser are automatically converted to StaticMeshActors.
| Name | AStaticMeshActor |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/StaticMeshActor.h |
| Include Path | #include "Engine/StaticMeshActor.h" |
Syntax
UCLASS (HideCategories=(Input), ShowCategories=("Input|MouseInput", "Input|TouchInput"),
ConversionRoot, ComponentWrapperClass, Meta=(ChildCanTick), MinimalAPI)
class AStaticMeshActor : public AActor
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → AActor → AStaticMeshActor
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
AStaticMeshActor
(
const FObjectInitializer& ObjectInitializer |
Engine/StaticMeshActor.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| StaticMeshComponentName | FName | Name of the StaticMeshComponent. | Engine/StaticMeshActor.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bStaticMeshReplicateMovement | bool | This static mesh should replicate movement. | Engine/StaticMeshActor.h |
|
| NavigationGeometryGatheringMode | ENavDataGatheringMode | Engine/StaticMeshActor.h |
|
|
| StaticMeshPhysicsReplicationMode | EPhysicsReplicationMode | Set which replication mode to use for this static mesh instance if it both replicates and simulates physics. | Engine/StaticMeshActor.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| StaticMeshComponent | TObjectPtr< class UStaticMeshComponent > | Engine/StaticMeshActor.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ENavDataGatheringMode GetGeometryGatheringMode() |
Engine/StaticMeshActor.h | ||
UStaticMeshComponent * GetStaticMeshComponent() |
Returns StaticMeshComponent subobject | Engine/StaticMeshActor.h | |
void SetMobility
(
EComponentMobility::Type InMobility |
Function to change mobility type | Engine/StaticMeshActor.h |
|
Overridden from AActor
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void CheckForErrors() |
Function that gets called from within Map_Check to allow this actor to check itself for any potential errors and register them with map check dialog. | Engine/StaticMeshActor.h | |
| Used by the "Sync to Content Browser" right-click menu option in the editor. | Engine/StaticMeshActor.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PostLoad() |
Engine/StaticMeshActor.h | ||
virtual void Serialize
(
FArchive& Ar |
Engine/StaticMeshActor.h |
Protected
Overridden from AActor
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void BeginPlay() |
Overridable native event for when play begins for this actor. | Engine/StaticMeshActor.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FString GetDetailedInfoInternal() |
Engine/StaticMeshActor.h | ||
virtual void LoadedFromAnotherClass
(
const FName& OldClassName |
Engine/StaticMeshActor.h | ||
virtual void PostEditChangeChainProperty
(
FPropertyChangedChainEvent& PropertyChangedEvent |
Engine/StaticMeshActor.h |