# reading/writing a blueprint class default value

**URL:** <https://forums.unrealengine.com/t/reading-writing-a-blueprint-class-default-value/73889>\
**Category:** ARK: Survival Evolved\
**Tags:** unreal-engine, Ark:-Survival-Evolved, Modding\
**Created:** [September 17, 2016, 9:16pm UTC](https://forums.unrealengine.com/t/reading-writing-a-blueprint-class-default-value/73889 "2016-09-17T21:16:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_17199181](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_17199181](https://forums.unrealengine.com/u/anonymous_user_17199181)\
**Post date:** [September 17, 2016, 9:16pm UTC](https://forums.unrealengine.com/t/reading-writing-a-blueprint-class-default-value/73889/1 "2016-09-17T21:16:31Z")

</div>

I know some mods directly alter attributes of classes directly such as  
“spoiling time” of PrimalItemConsumable\_Berry\_Mejoberry. however i am looking for reading defaults of classes dynamically using the blueprint language. does anyone know how? Thank you.

---

<div class="post-metadata">

**Author:** ![Nanobot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nanobot](https://forums.unrealengine.com/u/Nanobot)\
**Post date:** [September 18, 2016, 1:26am UTC](https://forums.unrealengine.com/t/reading-writing-a-blueprint-class-default-value/73889/2 "2016-09-18T01:26:30Z")

</div>

Do you want to know the default even if it was modified?

> **[\[Question\] BP - Accessing default values of a variables](https://forums.unrealengine.com/questions/9608/question-bp-accessing-default-values-of-a-variable.html)**
>
> Okay so I have a need for accessing the default value of the GroundSpeed variable in my Character Blueprint’s Movement Component. I cant seem to find a way to get or set default values anywhere in the Blueprint editor, so Im curious if anyone knows...

If you really want to, you could use the editor to look at the actors you want and check, then perhaps make a array listing them and just call that if needed.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_17199181](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_17199181](https://forums.unrealengine.com/u/anonymous_user_17199181)\
**Post date:** [September 18, 2016, 10:17am UTC](https://forums.unrealengine.com/t/reading-writing-a-blueprint-class-default-value/73889/3 "2016-09-18T10:17:17Z")

</div>

> [@Nanobot;596271](#):
>
> Do you want to know the default even if it was modified?  
> [[Question] BP - Accessing default values of a variables - Programming & Scripting - Epic Developer Community Forums](https://answers.unrealengine.com/questions/9608/question-bp-accessing-default-values-of-a-variable.html)
> 
> If you really want to, you could use the editor to look at the actors you want and check, then perhaps make a array listing them and just call that if needed.

I want to know what the default is and modify it programmatically. For example make spoiling time of raw meat slower in colder temperatures etc.

---

<div class="post-metadata">

**Author:** ![Grebog\_TV](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Grebog\_TV](https://forums.unrealengine.com/u/Grebog_TV)\
**Post date:** [September 20, 2016, 11:31am UTC](https://forums.unrealengine.com/t/reading-writing-a-blueprint-class-default-value/73889/4 "2016-09-20T11:31:48Z")

</div>

changing a default value of a class happens on the server.  
If you change the spoiling time, the time is then the default for all spoiled raw meat from the time since you change it. This will not work as you expect.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_17199181](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_17199181](https://forums.unrealengine.com/u/anonymous_user_17199181)\
**Post date:** [September 20, 2016, 11:55am UTC](https://forums.unrealengine.com/t/reading-writing-a-blueprint-class-default-value/73889/5 "2016-09-20T11:55:50Z")

</div>

> [@WolionGames;597383](#):
>
> changing a default value of a class happens on the server.  
> If you change the spoiling time, the time is then the default for all spoiled raw meat from the time since you change it. This will not work as you expect.

That’s what I’m after, changing the defaults of the class rather than the current value of an instant.

---

<div class="post-metadata">

**Author:** ![SkyeEden](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/skyeeden/32/1116094_2.png) [@SkyeEden](https://forums.unrealengine.com/u/SkyeEden)\
**Post date:** [March 9, 2022, 9:25pm UTC](https://forums.unrealengine.com/t/reading-writing-a-blueprint-class-default-value/73889/6 "2022-03-09T21:25:49Z")

</div>


