# listing all properties of a class in Unreal 5

**URL:** <https://forums.unrealengine.com/t/listing-all-properties-of-a-class-in-unreal-5/2024437>\
**Category:** Programming & Scripting\
**Tags:** c-c, c-class-wizard, c-and-bluepri, c-custommeshcomponen, c-and-blueprint, c-error, c-class, c-custom-shape, c-programming, c-cone-shape, unreal-engine, question, CPP\
**Created:** [September 17, 2024, 1:10pm UTC](https://forums.unrealengine.com/t/listing-all-properties-of-a-class-in-unreal-5/2024437 "2024-09-17T13:10:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![taz0xx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@taz0xx](https://forums.unrealengine.com/u/taz0xx)\
**Post date:** [September 17, 2024, 1:10pm UTC](https://forums.unrealengine.com/t/listing-all-properties-of-a-class-in-unreal-5/2024437/1 "2024-09-17T13:10:53Z")

</div>

There [is a post that asked how to list properties](https://forums.unrealengine.com/t/python-property-finding-or-listing/149717/2) that can be used for `get_editor_property` that was for Unreal 4.21:

https://www.youtube.com/embed/2GptXWIgwqI?feature=oembed&wmode=opaque&list=PLBLmKCAjA25Br8cOVzUroqi_Nwipg-IdP

I tried running this in Unreal 5.4 but of course it errored out due to probably some changes in the API. What would be the correct way to format this for the current version of Unreal?

This is what I have so far:

header:

```auto
// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "Kismet/BlueprintFunctionLibrary.h"
#include "MyBlueprintFunctionLibrary.generated.h"

/**
 * 
 */
UCLASS()
class MYPROJECT_API UMyBlueprintFunctionLibrary : public UBlueprintFunctionLibrary
{
	GENERATED_BODY()
public:
	UFUNCTION(BlueprintCallable, Category = "Unreal Python")
	static TArray<FString> GetAllProperties(UClass* Class);
};

```

cpp:

```auto
// Fill out your copyright notice in the Description page of Project Settings.

#include "MyBlueprintFunctionLibrary.h"

TArray<FString> UMyBlueprintFunctionLibrary::GetAllProperties(UClass* Class) {
	TArray<FString> Ret;
	if (IsValid(Class)) {
		for (TFieldIterator<FProperty> It(Class); It; ++It) {
			FProperty* Property = *It;
			if (Property->HasAnyPropertyFlags(EPropertyFlags::CPF_Edit)) {
				Ret.Add(Property->GetName());
			}
		}
	}
	return Ret;
}

```
