# Native Integer Types behave differently in Blueprint

**URL:** <https://forums.unrealengine.com/t/native-integer-types-behave-differently-in-blueprint/284829>\
**Category:** Blueprint\
**Tags:** unreal-engine, bug-report, CPP, Blueprint, question\
**Created:** [June 3, 2014, 12:35am UTC](https://forums.unrealengine.com/t/native-integer-types-behave-differently-in-blueprint/284829 "2014-06-03T00:35:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ambershee](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ambershee](https://forums.unrealengine.com/u/ambershee)\
**Post date:** [June 3, 2014, 12:35am UTC](https://forums.unrealengine.com/t/native-integer-types-behave-differently-in-blueprint/284829/1 "2014-06-03T00:35:46Z")

</div>

Hello!

I’ve just observed that native integers of different types are treated differently in blueprint, which doesn’t seem right at all.

Consider the following native declaration as part of a Blueprintable class:  
protected:  
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite, Category=Int)  
int32 SignedInt;

```
	UPROPERTY(EditDefaultsOnly, BlueprintReadWrite, Category=Int)
	uint32 UnsignedInt;

```

Within the editor’s defaults panel, the signed integer’s value is editable as expected. The second unsigned integer is not editable and is greyed out.

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [June 3, 2014, 12:57am UTC](https://forums.unrealengine.com/t/native-integer-types-behave-differently-in-blueprint/284829/2 "2014-06-03T00:57:44Z")

</div>

That how blueprint reacts to unsupported type (Blueprint system don’t know how to handle type), there other int types which does not work (like int8). It’s a known “bug”

---

<div class="post-metadata">

**Author:** ![ambershee](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ambershee](https://forums.unrealengine.com/u/ambershee)\
**Post date:** [June 3, 2014, 1:34am UTC](https://forums.unrealengine.com/t/native-integer-types-behave-differently-in-blueprint/284829/3 "2014-06-03T01:34:06Z")

</div>

Both types are listed as valid in the documentation:

> **[Properties](https://docs.unrealengine.com/4.27/en-US/ProgrammingAndScripting/GameplayArchitecture/Properties/)**
>
> Reference for creating and implementing properties for gameplay classes.

Oddly enough, using a uint32 as a boolean works perfectly fine…

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [June 3, 2014, 3:53am UTC](https://forums.unrealengine.com/t/native-integer-types-behave-differently-in-blueprint/284829/4 "2014-06-03T03:53:56Z")

</div>

it is definitely a bug that Epic should work out

specifically int8 and uint32 should really not be greyed out!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b666e59e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b666e59e](https://forums.unrealengine.com/u/anonymous_user_b666e59e)\
**Post date:** [September 6, 2014, 6:04pm UTC](https://forums.unrealengine.com/t/native-integer-types-behave-differently-in-blueprint/284829/5 "2014-09-06T18:04:37Z")

</div>

Hi ambershee,

Sorry for not responding to this sooner. It managed to slip past me.

The current variable types available to use in Blueprints are essentially a holdover from UE3 and Kismet. The original intent was to keep things as simple as possible for Kismet users (and later Blueprint users). The documentation page that you linked lists a number of core data types, and all of these are usable in C++. However, Blueprint variable types are a bit more restrictive (for example, you can use `float` in Blueprints, but you cannot use `double`). The documentation page you were looking at could probably use some clarification in that regard.

There has been some discussion internally about allowing Blueprints to use the largest numerical data type available (for example, `int64` and `double`), but this would involve some significant changes to the source code since the Blueprint system was not originally designed to use those types. It seems like most of our developers are leaning towards wanting to use the larger data types, but it does not sound like they want to support all types (for example, make `double` available instead of `float`, but not both).

The ultimate goal is that Blueprints should “just work,” and simplifying data types available for use in Blueprints is what is intended. This issue is actually more of a design restriction than a bug, and while we would like to eventually allow Blueprints to use the largest numerical types available, you most likely will never be able to use all of them.

---

<div class="post-metadata">

**Author:** ![ambershee](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ambershee](https://forums.unrealengine.com/u/ambershee)\
**Post date:** [September 9, 2014, 1:06pm UTC](https://forums.unrealengine.com/t/native-integer-types-behave-differently-in-blueprint/284829/6 "2014-09-09T13:06:18Z")

</div>

Thanks ,

Personally, I’m not so keen on the larger data types, as a lot of my reservations come from a networking and memory use perspective. I’d rather be efficient than both at the moment, and don’t need the flexibility a 64-bit numerical type would offer.

For the time being, I’m doing the majority of my work in C++ for networking reasons. Blueprint seems to be a bit lacking in that regard, as whilst it works and isn’t too bad, it is certainly not as flexible as handling data member replication manually in code 🙂

Either way, it’s one thing to be able to _create_ these types in Blueprints, and another to be able to reference and use them.

---

<div class="post-metadata">

**Author:** ![Pelangi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pelangi](https://forums.unrealengine.com/u/Pelangi)\
**Post date:** [July 7, 2015, 2:52pm UTC](https://forums.unrealengine.com/t/native-integer-types-behave-differently-in-blueprint/284829/7 "2015-07-07T14:52:47Z")

</div>

I really wished 64-bit to be supported by Unreal Engine in Blueprint, because Blueprint revolutionize programming paradigm.
