UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
StaticMeshActor.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
8#if UE_ENABLE_INCLUDE_ORDER_DEPRECATED_IN_5_4
10#endif //UE_ENABLE_INCLUDE_ORDER_DEPRECATED_IN_5_4
12#include "StaticMeshActor.generated.h"
13
22UCLASS(hidecategories=(Input), showcategories=("Input|MouseInput", "Input|TouchInput"), ConversionRoot, ComponentWrapperClass, meta=(ChildCanTick), MinimalAPI)
23class AStaticMeshActor : public AActor
24{
26
28 UPROPERTY(Category = StaticMeshActor, VisibleAnywhere, BlueprintReadOnly, meta = (ExposeFunctionCategories = "Mesh,Rendering,Physics,Components|StaticMesh", AllowPrivateAccess = "true"))
29 TObjectPtr<class UStaticMeshComponent> StaticMeshComponent;
30
32 ENGINE_API virtual void BeginPlay() override;
33
34public:
36 UPROPERTY(Category=Actor, EditAnywhere, AdvancedDisplay)
38
40 UPROPERTY(Category = Actor, EditAnywhere, AdvancedDisplay)
42
43 UE_DEPRECATED(5.0, "Unused property. The actor will use the DefaultGeometryGatheringMode set in FNavigationOctree (see virtual ENavDataGatheringMode GetGeometryGatheringMode()).")
44 UPROPERTY(EditAnywhere, Category = Navigation, AdvancedDisplay)
46
48 UFUNCTION(BlueprintCallable, Category = Mobility)
49 ENGINE_API void SetMobility(EComponentMobility::Type InMobility);
50
51 //~ Begin AActor Interface
52#if WITH_EDITOR
53 ENGINE_API virtual void CheckForErrors() override;
54 ENGINE_API virtual bool GetReferencedContentObjects( TArray<UObject*>& Objects ) const override;
55 ENGINE_API virtual void PostLoad() override;
56#endif // WITH_EDITOR
57 ENGINE_API virtual void Serialize(FArchive& Ar) override;
58 //~ End AActor Interface
59
60 // INavRelevantInterface begin
61 virtual ENavDataGatheringMode GetGeometryGatheringMode() const { return ENavDataGatheringMode::Default; }
62 // INavRelevantInterface end
63
64protected:
65 //~ Begin UObject Interface.
66 ENGINE_API virtual FString GetDetailedInfoInternal() const override;
67#if WITH_EDITOR
68 ENGINE_API virtual void LoadedFromAnotherClass(const FName& OldClassName) override;
69 ENGINE_API virtual void PostEditChangeChainProperty(FPropertyChangedChainEvent& PropertyChangedEvent) override;
70#endif // WITH_EDITOR
71 //~ End UObject Interface.
72
73public:
75 class UStaticMeshComponent* GetStaticMeshComponent() const { return StaticMeshComponent; }
76
79};
80
81
82
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
EPhysicsReplicationMode
Definition EngineTypes.h:3378
return true
Definition ExternalRpcRegistry.cpp:601
ENavDataGatheringMode
Definition NavDataGatheringMode.h:9
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define UFUNCTION(...)
Definition ObjectMacros.h:745
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition Actor.h:257
virtual ENGINE_API void PostLoad() override
Definition Actor.cpp:1103
Definition Archive.h:1208
Definition NameTypes.h:617
Definition NavigationOctree.h:173
Definition Array.h:670
virtual FString GetDetailedInfoInternal() const
Definition Object.h:215
Definition EngineTypes.h:3787
Definition UnrealType.h:7001
Definition ObjectPtr.h:488