# How to display parameters of a class in editor?

**URL:** <https://forums.unrealengine.com/t/how-to-display-parameters-of-a-class-in-editor/474389>\
**Category:** Pipeline & Plugins\
**Tags:** parameters, unreal-engine, editor, question\
**Created:** [November 12, 2020, 9:58pm UTC](https://forums.unrealengine.com/t/how-to-display-parameters-of-a-class-in-editor/474389 "2020-11-12T21:58:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tfis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tfis](https://forums.unrealengine.com/u/tfis)\
**Post date:** [November 12, 2020, 9:58pm UTC](https://forums.unrealengine.com/t/how-to-display-parameters-of-a-class-in-editor/474389/1 "2020-11-12T21:58:09Z")

</div>

Hi,

I have a BP with a public class variable and depending on the class chosen in the editor, I want to display it’s corresponding parameters in the editor. I know it’s not possible to do so if the class is not instanciated but I found an example of what I want to do. In AIPerception, depending on the value of SensesConfig, different parameters are shown to the user in the editor.  
How can I achieve that pls ?

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![Kehel18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kehel18](https://forums.unrealengine.com/u/Kehel18)\
**Post date:** [November 14, 2020, 4:58pm UTC](https://forums.unrealengine.com/t/how-to-display-parameters-of-a-class-in-editor/474389/2 "2020-11-14T16:58:00Z")

</div>

The snippet below can solve such case. Use it and create for example several subclasses of UMyObject =)

```
UCLASS(BlueprintType, EditInlineNew)
class MYPROJECT_API UMyObject : public UObject {
	
	GENERATED_BODY()

	UPROPERTY(EditAnywhere)
	int32 MyIntProp;
};

UCLASS()
class MYPROJECT_API AMyActor : public AActor {

	GENERATED_BODY()

protected:

	UPROPERTY(EditAnywhere, Instanced)
	class UMyObject* InstanciatedProp;
};
```

---

<div class="post-metadata">

**Author:** ![Ambience\_Lee](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ambience\_Lee](https://forums.unrealengine.com/u/Ambience_Lee)\
**Post date:** [November 14, 2020, 4:59pm UTC](https://forums.unrealengine.com/t/how-to-display-parameters-of-a-class-in-editor/474389/3 "2020-11-14T16:59:30Z")

</div>

just add the UPROPERTY(EditAnywhere) on top of the remember variable.

---

<div class="post-metadata">

**Author:** ![tfis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tfis](https://forums.unrealengine.com/u/tfis)\
**Post date:** [November 14, 2020, 5:57pm UTC](https://forums.unrealengine.com/t/how-to-display-parameters-of-a-class-in-editor/474389/4 "2020-11-14T17:57:58Z")

</div>

Thank you very much for you answer 😉 !!!

---

<div class="post-metadata">

**Author:** ![tfis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tfis](https://forums.unrealengine.com/u/tfis)\
**Post date:** [November 14, 2020, 5:58pm UTC](https://forums.unrealengine.com/t/how-to-display-parameters-of-a-class-in-editor/474389/5 "2020-11-14T17:58:14Z")

</div>

Thank you as well ^^
