ClampMin、ClampMax——输入的限定值
UIMin、UIMax——鼠标拖动的限定值
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "Student.generated.h"
UCLASS()
class UNREALDEMO_API AStudent : public AActor
{
GENERATED_BODY()
public:
// Sets default values for this actor's properties
AStudent();
protected:
// Called when the game starts or when spawned
virtual void BeginPlay() override;
public:
// Called every frame
virtual void Tick(float DeltaTime) override;
FVector m_position;
UPROPERTY(EditAnywhere, Category = "xxxx")
bool m_flag;
UPROPERTY(EditAnywhere, Category = "xxxx", meta=(ClampMin = -10, ClampMax = 10, UIMin = -10, UIMax = 10))
FVector m_position2;
};