# Editor Scripting

**URL:** https://forums.unrealengine.com/c/development-discussion/pipeline-plugins/editor-scripting/45.md?page=95

[Latest](https://forums.unrealengine.com/latest.md) · [Categories](https://forums.unrealengine.com/categories.md) · [Tags](https://forums.unrealengine.com/tags.md)

**Page:** 96

---

## [Can you initialize a UStruct's TArrays?](https://forums.unrealengine.com/t/can-you-initialize-a-ustructs-tarrays/335949)

<div class="topic-metadata">

**Author:** [@MugenCity](https://forums.unrealengine.com/u/MugenCity)\
**Replies:** 0\
**Last updated:** [October 20, 2015, 10:54pm UTC](https://forums.unrealengine.com/t/can-you-initialize-a-ustructs-tarrays/335949 "2015-10-20T22:54:16Z")

</div>

Hey Team, Is it possible to avoid having to manually assign a TArray to struct TArray variables? I.E can it be initialized from within the (c++) UStruct? I’m wanting to avoid having to do this every time I create one o…

---

## [How to get pointer property editable like non pointer](https://forums.unrealengine.com/t/how-to-get-pointer-property-editable-like-non-pointer/335776)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_2f7014b11](https://forums.unrealengine.com/u/anonymous_user_2f7014b11)\
**Replies:** 3\
**Last updated:** [October 19, 2015, 5:14pm UTC](https://forums.unrealengine.com/t/how-to-get-pointer-property-editable-like-non-pointer/335776 "2015-10-19T17:14:50Z")

</div>

I’m working on inventoy system in c++ and I have a question. How to store information with Actor using separate class but it should looks like a struct property in editor (just expandable like it was component). I want s…

---

## [How to check if an actor is in a array?](https://forums.unrealengine.com/t/how-to-check-if-an-actor-is-in-a-array/335314)

<div class="topic-metadata">

**Author:** [@Taratus](https://forums.unrealengine.com/u/Taratus)\
**Replies:** 1\
**Last updated:** [October 16, 2015, 9:06am UTC](https://forums.unrealengine.com/t/how-to-check-if-an-actor-is-in-a-array/335314 "2015-10-16T09:06:18Z")

</div>

How can I check if an actor is already exisiting in my array. I need this to make items in my inventory stackable and use the inventory from the unreal tutorial. Thanks :slight\_smile:

---

## [UMG Inventory in UE4  tutorial: items not showing up in inventory after pickup](https://forums.unrealengine.com/t/umg-inventory-in-ue4-tutorial-items-not-showing-up-in-inventory-after-pickup/301309)

<div class="topic-metadata">

**Author:** [@invayne](https://forums.unrealengine.com/u/invayne)\
**Replies:** 5\
**Last updated:** [October 15, 2015, 12:00am UTC](https://forums.unrealengine.com/t/umg-inventory-in-ue4-tutorial-items-not-showing-up-in-inventory-after-pickup/301309 "2015-10-15T00:00:42Z")

</div>

So after following the UMG Inventory in UE4 tutorial im having an issues with items showing up in the inventory in 4.6. every thing picks up fine detail panel works but i cant seem get the items to show in the inventor…

---

## [Cannot Use Variable Declared in Header](https://forums.unrealengine.com/t/cannot-use-variable-declared-in-header/334915)

<div class="topic-metadata">

**Author:** [@CosmicDreamStudios](https://forums.unrealengine.com/u/CosmicDreamStudios)\
**Replies:** 5\
**Last updated:** [October 14, 2015, 12:38am UTC](https://forums.unrealengine.com/t/cannot-use-variable-declared-in-header/334915 "2015-10-14T00:38:52Z")

</div>

I know I have to be overlooking something simple here but I cannot use any variable or tarray declared in a header in the corresponding cpp. I created a new class to handle some computations and when I call it I get an A…

---

## [BP variable default value resets to parent BP variable default value when packaged](https://forums.unrealengine.com/t/bp-variable-default-value-resets-to-parent-bp-variable-default-value-when-packaged/325597)

<div class="topic-metadata">

**Author:** [@KamiUE](https://forums.unrealengine.com/u/KamiUE)\
**Replies:** 2\
**Last updated:** [October 13, 2015, 7:40pm UTC](https://forums.unrealengine.com/t/bp-variable-default-value-resets-to-parent-bp-variable-default-value-when-packaged/325597 "2015-10-13T19:40:05Z")

</div>

hi The default vale of my gun Projectile class rests to its parent default value JUST when packaging for ios(it works good when i play the game from editor on windows).i ve read about this Very BIG and BASIC issue befor…

---

## [Load Save and how to know when a level is loaded](https://forums.unrealengine.com/t/load-save-and-how-to-know-when-a-level-is-loaded/335194)

<div class="topic-metadata">

**Author:** [@gamer08](https://forums.unrealengine.com/u/gamer08)\
**Replies:** 0\
**Last updated:** [October 13, 2015, 5:31pm UTC](https://forums.unrealengine.com/t/load-save-and-how-to-know-when-a-level-is-loaded/335194 "2015-10-13T17:31:47Z")

</div>

Hello everyone I’m working on a save System in c++ and so far everything is fine, but I’m stuck at 1 thing. First off, let me give you some details about the system, the game is divided in levels : level 1, level 2 and …

---

## [Crash When Searching References For Structure](https://forums.unrealengine.com/t/crash-when-searching-references-for-structure/334941)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_2709d010](https://forums.unrealengine.com/u/anonymous_user_2709d010)\
**Replies:** 1\
**Last updated:** [October 12, 2015, 6:32pm UTC](https://forums.unrealengine.com/t/crash-when-searching-references-for-structure/334941 "2015-10-12T18:32:49Z")

</div>

I have a BP structure that is part of a character blueprint. I have the setup visible in the first picture. I right click on the node, select “References” and the Editor crashes into the situation in the second screen. I…

---

## [Broken Mesh Collection](https://forums.unrealengine.com/t/broken-mesh-collection/335063)

<div class="topic-metadata">

**Author:** [@anon13781431](https://forums.unrealengine.com/u/anon13781431)\
**Replies:** 0\
**Last updated:** [October 12, 2015, 3:49pm UTC](https://forums.unrealengine.com/t/broken-mesh-collection/335063 "2015-10-12T15:49:41Z")

</div>

Is there a way to collect and put a mesh that has broken off from the original and put it into the inventory? Will there be lighting issues?

---

## [Is there any way to use one variable in two bluebrints](https://forums.unrealengine.com/t/is-there-any-way-to-use-one-variable-in-two-bluebrints/334532)

<div class="topic-metadata">

**Author:** [@TheLazyHatGuy](https://forums.unrealengine.com/u/TheLazyHatGuy)\
**Replies:** 3\
**Last updated:** [October 12, 2015, 10:50am UTC](https://forums.unrealengine.com/t/is-there-any-way-to-use-one-variable-in-two-bluebrints/334532 "2015-10-12T10:50:21Z")

</div>

I have a variable attached to the player but I need to access it in another blueprint In this (1st picture) blueprint I’m trying to access the variable in the player blueprint In the 2nd picture I am trying to set the …

---

## [Unable to make a UStruct with my UClass](https://forums.unrealengine.com/t/unable-to-make-a-ustruct-with-my-uclass/335009)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_1d75fc9b1](https://forums.unrealengine.com/u/anonymous_user_1d75fc9b1)\
**Replies:** 3\
**Last updated:** [October 12, 2015, 4:43am UTC](https://forums.unrealengine.com/t/unable-to-make-a-ustruct-with-my-uclass/335009 "2015-10-12T04:43:09Z")

</div>

In my Weapon.h I am trying to have a USTRUCT above my UCLASS, but I am getting various errors. First, its telling me in my USTRUCT for GENERATED\_BODY(): This declaration has no storage class or type specifier Then at m…

---

## [changing variable amounts](https://forums.unrealengine.com/t/changing-variable-amounts/334891)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_722df375](https://forums.unrealengine.com/u/anonymous_user_722df375)\
**Replies:** 2\
**Last updated:** [October 10, 2015, 8:28pm UTC](https://forums.unrealengine.com/t/changing-variable-amounts/334891 "2015-10-10T20:28:35Z")

</div>

I was wondering how variables worked when they change. I want to set a variable to be (ex.) 10 less than before, how does that work and then how would I set it to an exact number (ex.) exactly 10. also I was wondering ho…

---

## [checking for variable amount](https://forums.unrealengine.com/t/checking-for-variable-amount/334834)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_722df375](https://forums.unrealengine.com/u/anonymous_user_722df375)\
**Replies:** 7\
**Last updated:** [October 10, 2015, 6:55pm UTC](https://forums.unrealengine.com/t/checking-for-variable-amount/334834 "2015-10-10T18:55:13Z")

</div>

is there a way to check if a variable is above, below, same as, or other than an amount. or anything close to what I’m asking. how I’m looking to use this is to see if I have a variable above 0 and if so do an action(f…

---

## [Remember passed levels](https://forums.unrealengine.com/t/remember-passed-levels/334883)

<div class="topic-metadata">

**Author:** [@Slugling](https://forums.unrealengine.com/u/Slugling)\
**Replies:** 1\
**Last updated:** [October 10, 2015, 5:07pm UTC](https://forums.unrealengine.com/t/remember-passed-levels/334883 "2015-10-10T17:07:30Z")

</div>

Hello! Since I downloaded UE4 I’ve run into lots of problems, all of which I have fixed, either myself or with the help of this webpage’s members. I’ve learned much and now, I want to take a step forward. I made a “Cho…

---

## [Saving high score](https://forums.unrealengine.com/t/saving-high-score/334858)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_71c0b110](https://forums.unrealengine.com/u/anonymous_user_71c0b110)\
**Replies:** 10\
**Last updated:** [October 10, 2015, 2:41pm UTC](https://forums.unrealengine.com/t/saving-high-score/334858 "2015-10-10T14:41:55Z")

</div>

Hello! I have made a high score blueprint which is saving my best score, of destroy actors, but when i’am playing, there aren’t any saves, and any numbers of destroyed actors. What is bad in my blueprint? I have watchin…

---

## [Using Gamepad With Inventory](https://forums.unrealengine.com/t/using-gamepad-with-inventory/325115)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_c68471fb](https://forums.unrealengine.com/u/anonymous_user_c68471fb)\
**Replies:** 4\
**Last updated:** [October 7, 2015, 12:56pm UTC](https://forums.unrealengine.com/t/using-gamepad-with-inventory/325115 "2015-10-07T12:56:05Z")

</div>

I am using version 4.8 and cannot for the life of me figure out how to get my gamepad to work with my inventory. I am using an Xbox controller and am able to play in the game and even open/close the inventory but I canno…

---

## [Inventory pickup class storage](https://forums.unrealengine.com/t/inventory-pickup-class-storage/334262)

<div class="topic-metadata">

**Author:** [@Unteroid](https://forums.unrealengine.com/u/Unteroid)\
**Replies:** 2\
**Last updated:** [October 7, 2015, 12:10pm UTC](https://forums.unrealengine.com/t/inventory-pickup-class-storage/334262 "2015-10-07T12:10:17Z")

</div>

I’m working on the inventory system and came up with the question. Say, all pickup items are various children of base pickup class and one item placed in the world was picked up by a character. How does storage of an ite…

---

## [actor reference at widget blueprint](https://forums.unrealengine.com/t/actor-reference-at-widget-blueprint/334454)

<div class="topic-metadata">

**Author:** [@MyFreshP](https://forums.unrealengine.com/u/MyFreshP)\
**Replies:** 2\
**Last updated:** [October 6, 2015, 8:33pm UTC](https://forums.unrealengine.com/t/actor-reference-at-widget-blueprint/334454 "2015-10-06T20:33:00Z")

</div>

I created a blueprint for discoverable locations, a widget blueprint being the visual representation of the discoverable location and a widget blueprint containing several of the mentioned widget blueprints for showing a…

---

## [Loading character stats on respawn ~~ help!](https://forums.unrealengine.com/t/loading-character-stats-on-respawn-help/334347)

<div class="topic-metadata">

**Author:** [@behrtron](https://forums.unrealengine.com/u/behrtron)\
**Replies:** 2\
**Last updated:** [October 6, 2015, 5:47pm UTC](https://forums.unrealengine.com/t/loading-character-stats-on-respawn-help/334347 "2015-10-06T17:47:15Z")

</div>

so ive been really confused with the save game variables, i just cant seem to get it down correctly. so lets assume i have nothing being save or loaded at any times other than event begin play for game settings when you…

---

## [Scale static meshes from a data table](https://forums.unrealengine.com/t/scale-static-meshes-from-a-data-table/334435)

<div class="topic-metadata">

**Author:** [@neadnod](https://forums.unrealengine.com/u/neadnod)\
**Replies:** 0\
**Last updated:** [October 6, 2015, 5:27pm UTC](https://forums.unrealengine.com/t/scale-static-meshes-from-a-data-table/334435 "2015-10-06T17:27:03Z")

</div>

Hi all, I’m experimenting with data tables. I got a data table with name and scale labels and I want to be able to dynamically scale staticmeshes with the same names. My data table is loaded in the level blueprint and …

---

## [Accessing Level Blueprint Variables during PIE](https://forums.unrealengine.com/t/accessing-level-blueprint-variables-during-pie/334217)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_4071fa6e1](https://forums.unrealengine.com/u/anonymous_user_4071fa6e1)\
**Replies:** 4\
**Last updated:** [October 5, 2015, 5:29pm UTC](https://forums.unrealengine.com/t/accessing-level-blueprint-variables-during-pie/334217 "2015-10-05T17:29:01Z")

</div>

If I create a variable in a class blueprint I can edit that variables during PIE by selecting the blueprint from the scene(world) outliner list. That give me access to the variabe during runtime. However, if I create v…

---

## [Getter node necessary to avoid scope problem?](https://forums.unrealengine.com/t/getter-node-necessary-to-avoid-scope-problem/331978)

<div class="topic-metadata">

**Author:** [@Shrooblord](https://forums.unrealengine.com/u/Shrooblord)\
**Replies:** 8\
**Last updated:** [October 5, 2015, 3:06pm UTC](https://forums.unrealengine.com/t/getter-node-necessary-to-avoid-scope-problem/331978 "2015-10-05T15:06:44Z")

</div>

Hi Epic Staff, Seems I ran into a bit of a problem scripting my blueprints and I was wondering if it’s because of some sort of bug. Here’s the situation. I have a blueprint called room that will check the level for an…

---

## [How can I do the Opposite of Ease?](https://forums.unrealengine.com/t/how-can-i-do-the-opposite-of-ease/334116)

<div class="topic-metadata">

**Author:** [@Quartaroy](https://forums.unrealengine.com/u/Quartaroy)\
**Replies:** 7\
**Last updated:** [October 4, 2015, 6:59pm UTC](https://forums.unrealengine.com/t/how-can-i-do-the-opposite-of-ease/334116 "2015-10-04T18:59:16Z")

</div>

The Ease node does exactly the opposite of what I’m aiming to do. I’m trying to interpolate between Vector A and B, but I want to do so at a rate when it accelerates more rapidly at the end of the interpolation, rather …

---

## [Where should inventory items go when in your inventory so they exist after a level change?](https://forums.unrealengine.com/t/where-should-inventory-items-go-when-in-your-inventory-so-they-exist-after-a-level-change/333879)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_6c821b89](https://forums.unrealengine.com/u/anonymous_user_6c821b89)\
**Replies:** 5\
**Last updated:** [October 3, 2015, 8:38pm UTC](https://forums.unrealengine.com/t/where-should-inventory-items-go-when-in-your-inventory-so-they-exist-after-a-level-change/333879 "2015-10-03T20:38:33Z")

</div>

My inventory keeps up with an array of actor references and sets visibility and collision off for the actor when in inventory. The problem is when the character switches levels the objects that the references refer to ar…

---

## [Using UENUMS or USTRUCTS without class](https://forums.unrealengine.com/t/using-uenums-or-ustructs-without-class/334066)

<div class="topic-metadata">

**Author:** [@Helghast](https://forums.unrealengine.com/u/Helghast)\
**Replies:** 2\
**Last updated:** [October 3, 2015, 9:42am UTC](https://forums.unrealengine.com/t/using-uenums-or-ustructs-without-class/334066 "2015-10-03T09:42:51Z")

</div>

I have a question on how to use and define Enums or Structs without a class or out of a class file. Many examples show Enums and Structs in a header file (\*.h) of a class. As this exaample, declare an Enum before a Clas…

---

## [Find all items in array?](https://forums.unrealengine.com/t/find-all-items-in-array/334063)

<div class="topic-metadata">

**Author:** [@Davision](https://forums.unrealengine.com/u/Davision)\
**Replies:** 2\
**Last updated:** [October 2, 2015, 8:08pm UTC](https://forums.unrealengine.com/t/find-all-items-in-array/334063 "2015-10-02T20:08:09Z")

</div>

I’m working in Blueprint and there is a a Find Item in Array node but that gives out only the first found item and I need to find all instead which could also be done with a for loop but there is no node that could do it…

---

## [Get a variable from another blueprint](https://forums.unrealengine.com/t/get-a-variable-from-another-blueprint/333497)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_433d8a0b1](https://forums.unrealengine.com/u/anonymous_user_433d8a0b1)\
**Replies:** 3\
**Last updated:** [October 2, 2015, 2:41pm UTC](https://forums.unrealengine.com/t/get-a-variable-from-another-blueprint/333497 "2015-10-02T14:41:25Z")

</div>

I have two BPs, in one of them is a variable I need in the other too, so how do I get the variable in the other BP?

---

## [How do I keep a valid reference to a InstancedStaticMesh instance?](https://forums.unrealengine.com/t/how-do-i-keep-a-valid-reference-to-a-instancedstaticmesh-instance/289448)

<div class="topic-metadata">

**Author:** [@Grey\_2](https://forums.unrealengine.com/u/Grey_2)\
**Replies:** 4\
**Last updated:** [October 1, 2015, 9:15pm UTC](https://forums.unrealengine.com/t/how-do-i-keep-a-valid-reference-to-a-instancedstaticmesh-instance/289448 "2015-10-01T21:15:45Z")

</div>

Hi guys! I’m in the process of creating some (runtime!) procedurally generated levels, and I very quickly ran into the performance issue with spawning standard static meshes. I turned to InstancedStaticMeshes which has …

---

## [What Kind of GET Array is this?](https://forums.unrealengine.com/t/what-kind-of-get-array-is-this/333837)

<div class="topic-metadata">

**Author:** [@Medii](https://forums.unrealengine.com/u/Medii)\
**Replies:** 6\
**Last updated:** [September 30, 2015, 3:37pm UTC](https://forums.unrealengine.com/t/what-kind-of-get-array-is-this/333837 "2015-09-30T15:37:50Z")

</div>

http://i.imgur.com/fsiJIr2.png I can’t figure out how to add nodes to the get array, closest I’ve come was collapsing the nodes, but that isn’t what I need.

---

## [Access Variables From Another Actor C++](https://forums.unrealengine.com/t/access-variables-from-another-actor-c/333813)

<div class="topic-metadata">

**Author:** [@CosmicDreamStudios](https://forums.unrealengine.com/u/CosmicDreamStudios)\
**Replies:** 6\
**Last updated:** [September 30, 2015, 5:17am UTC](https://forums.unrealengine.com/t/access-variables-from-another-actor-c/333813 "2015-09-30T05:17:46Z")

</div>

Hey, new to UE4 and learning how to reference. I am trying to access variables from another actor in my scene. The calling actor is TheBuildingCharacter and the Actor being called is BuildingController. It has some publi…

[Previous page](https://forums.unrealengine.com/c/development-discussion/pipeline-plugins/editor-scripting/45.md?page=94)

[Next page](https://forums.unrealengine.com/c/development-discussion/pipeline-plugins/editor-scripting/45.md?page=96)
