# Why FText can be declared without a pointer?

**URL:** <https://forums.unrealengine.com/t/why-ftext-can-be-declared-without-a-pointer/561622>\
**Category:** C++\
**Tags:** UE4-20, unreal-engine, UE4, CPP, question\
**Created:** [May 20, 2022, 2:44am UTC](https://forums.unrealengine.com/t/why-ftext-can-be-declared-without-a-pointer/561622 "2022-05-20T02:44:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexa.Ki](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alexa.ki/32/562753_2.png) [@Alexa.Ki](https://forums.unrealengine.com/u/Alexa.Ki)\
**Post date:** [May 20, 2022, 2:44am UTC](https://forums.unrealengine.com/t/why-ftext-can-be-declared-without-a-pointer/561622/1 "2022-05-20T02:44:50Z")

</div>

A quick Example:

```auto
	//Defining the name of the item
	UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Fashion Items Related")
		FText Name; // can be declared without a pointer

	//Defining the icon of the item
	UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Fashion Items Related")
		UTexture2D* Icon;//can't be declared without a pointer

```

I can’t declare `UTexture2D Icon;` is logically fine, but but declaring `FText Name;` is possible which is not fine logically, why?

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [May 20, 2022, 3:06am UTC](https://forums.unrealengine.com/t/why-ftext-can-be-declared-without-a-pointer/561622/2 "2022-05-20T03:06:32Z")

</div>

UObjects are created through various methods, for example “NewObject” (depending on where in the code you want to create an instance). These methods set up the UObject and return a pointer.

> [UObject Instance Creation | Unreal Engine 4.27 Documentation](https://docs.unrealengine.com/4.27/en-US/ProgrammingAndScripting/ProgrammingWithCPP/UnrealArchitecture/Objects/Creation/)

> [Properly using NewObject](https://forums.unrealengine.com/t/properly-using-newobject/289717)

---

<div class="post-metadata">

**Author:** ![Alexa.Ki](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alexa.ki/32/562753_2.png) [@Alexa.Ki](https://forums.unrealengine.com/u/Alexa.Ki)\
**Post date:** [May 20, 2022, 3:09am UTC](https://forums.unrealengine.com/t/why-ftext-can-be-declared-without-a-pointer/561622/3 "2022-05-20T03:09:33Z")

</div>

Sir, Thank You for help , You just solved my problem, Thank You very much.
