初始提交: UE5.3项目基础框架

This commit is contained in:
2025-10-14 11:14:54 +08:00
commit 721d9fd98e
5334 changed files with 316782 additions and 0 deletions

View File

@ -0,0 +1,38 @@
// Copyright 2020-2024 CesiumGS, Inc. and Contributors
#pragma once
#include "GameFramework/Actor.h"
#include <glm/glm.hpp>
#define CESIUM_POST_EDIT_CHANGE(changedPropertyName, ClassName, PropertyName) \
if (changedPropertyName == \
GET_MEMBER_NAME_CHECKED(ClassName, PropertyName)) { \
this->Set##PropertyName(this->PropertyName); \
return; \
}
/**
* @brief Utility functions related to Unreal actors
*/
class CesiumActors {
public:
/**
* @brief Returns the origin location of the world that the given
* actor is contained in.
*
* If the given actor is not valid or not contained in a world,
* then a warning is printed and (0,0,0,0) is returned.
*
* @param actor The actor
* @return The world origin
*/
static glm::dvec4 getWorldOrigin4D(const AActor* actor);
static bool shouldValidateFlags(UObject* object);
static void validateActorFlags(AActor* actor);
static void validateActorComponentFlags(UActorComponent* component);
private:
static void validatePublicFlag(UObject* object, const FString& label);
};