# Editor Scripting

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

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

**Page:** 97

---

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

<div class="topic-metadata">

**Author:** [@anonymous\_user\_433d8a0b1](https://forums.unrealengine.com/u/anonymous_user_433d8a0b1)\
**Replies:** 3\
**Last updated:** [September 26, 2015, 8:21pm UTC](https://forums.unrealengine.com/t/get-a-variable-from-another-blueprint/333496 "2015-09-26T20:21:35Z")

</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?

---

## [savegame blueprint and loadgame blueprint](https://forums.unrealengine.com/t/savegame-blueprint-and-loadgame-blueprint/300168)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_95bf9f7e1](https://forums.unrealengine.com/u/anonymous_user_95bf9f7e1)\
**Replies:** 1\
**Last updated:** [September 24, 2015, 10:23pm UTC](https://forums.unrealengine.com/t/savegame-blueprint-and-loadgame-blueprint/300168 "2015-09-24T22:23:26Z")

</div>

i cant figure this out i looked at the savegame tutorial that epicgames provides in their documentation but i want to make one where when i push a button on my UI which i already have it loads the level and puts the play…

---

## [Anyone know an inventory system?](https://forums.unrealengine.com/t/anyone-know-an-inventory-system/332747)

<div class="topic-metadata">

**Author:** [@Pimney](https://forums.unrealengine.com/u/Pimney)\
**Replies:** 1\
**Last updated:** [September 19, 2015, 1:15pm UTC](https://forums.unrealengine.com/t/anyone-know-an-inventory-system/332747 "2015-09-19T13:15:52Z")

</div>

Hi guys, I was wondering if someone could show me a good inventory system. I am using the topdowntemplate and want a inventory that when i drag my weapon from my inventory to my hand symbol that it attaches my weapon to …

---

## ["No structure in SubCategoryObject in pin" with custom USTRUCT parameter](https://forums.unrealengine.com/t/no-structure-in-subcategoryobject-in-pin-with-custom-ustruct-parameter/325032)

<div class="topic-metadata">

**Author:** [@rohoon](https://forums.unrealengine.com/u/rohoon)\
**Replies:** 1\
**Last updated:** [September 16, 2015, 10:29pm UTC](https://forums.unrealengine.com/t/no-structure-in-subcategoryobject-in-pin-with-custom-ustruct-parameter/325032 "2015-09-16T22:29:09Z")

</div>

I’ve got a custom UActorComponent that fires events when certain touch gestures are recognised. Most of these event delegates pass a custom USTRUCT parameter, which contains both a pixel screen location and a normalised …

---

## [Deleting a USaveGame Pointer causes a hard crash](https://forums.unrealengine.com/t/deleting-a-usavegame-pointer-causes-a-hard-crash/332094)

<div class="topic-metadata">

**Author:** [@MugenCity](https://forums.unrealengine.com/u/MugenCity)\
**Replies:** 3\
**Last updated:** [September 15, 2015, 10:13pm UTC](https://forums.unrealengine.com/t/deleting-a-usavegame-pointer-causes-a-hard-crash/332094 "2015-09-15T22:13:08Z")

</div>

Hey Team, When I attempt to delete a pointer to a Save Game in my classes deconstructor it causes a hard-crash. I am using a custom USaveGame pointer and am creating it through the same function calls as in the SaveGame…

---

## [Why is it putting 2 items in my inventory when I pick up an item in version 4.9?](https://forums.unrealengine.com/t/why-is-it-putting-2-items-in-my-inventory-when-i-pick-up-an-item-in-version-4-9/331166)

<div class="topic-metadata">

**Author:** [@PoisonedAce](https://forums.unrealengine.com/u/PoisonedAce)\
**Replies:** 9\
**Last updated:** [September 15, 2015, 3:39pm UTC](https://forums.unrealengine.com/t/why-is-it-putting-2-items-in-my-inventory-when-i-pick-up-an-item-in-version-4-9/331166 "2015-09-15T15:39:39Z")

</div>

I have been following the twitch stream tutorial for a drag and drop inventory in UMG which works as intended in version 4.8.3, however when I update it to version 4.9 it works but it will add the item to the inventory t…

---

## [UStruct getting garbage collected](https://forums.unrealengine.com/t/ustruct-getting-garbage-collected/332123)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_b467b02b](https://forums.unrealengine.com/u/anonymous_user_b467b02b)\
**Replies:** 1\
**Last updated:** [September 14, 2015, 8:24pm UTC](https://forums.unrealengine.com/t/ustruct-getting-garbage-collected/332123 "2015-09-14T20:24:42Z")

</div>

Hi! I’ve a weird problem in my Network game. My UStruct(FMinionData) gets garabage collected after 60 seconds. The wierd thing is that it works just fine when i run it in NON-debug mode, but when i start the project fro…

---

## [Saving C++](https://forums.unrealengine.com/t/saving-c/331480)

<div class="topic-metadata">

**Author:** [@Problemahtic](https://forums.unrealengine.com/u/Problemahtic)\
**Replies:** 7\
**Last updated:** [September 13, 2015, 3:00pm UTC](https://forums.unrealengine.com/t/saving-c/331480 "2015-09-13T15:00:25Z")

</div>

How do I go about saving data for use at a later date example if I unlocked 3/5 levels and wanted to save that data so the player could stop playing and come back to it at any time. I guess its saving to the device or H…

---

## ["Select Actors Using This Asset" and Actor References Array Bug](https://forums.unrealengine.com/t/select-actors-using-this-asset-and-actor-references-array-bug/329968)

<div class="topic-metadata">

**Author:** [@Nox\_A15](https://forums.unrealengine.com/u/Nox_A15)\
**Replies:** 8\
**Last updated:** [September 11, 2015, 7:18pm UTC](https://forums.unrealengine.com/t/select-actors-using-this-asset-and-actor-references-array-bug/329968 "2015-09-11T19:18:50Z")

</div>

Hello, I have a BP with editable actor references array. Recently I noticed that option “Select Actors Using This Asset” doesn’t work for actors listed in this array. Simple as that, but it can be quite misleading and m…

---

## [C++ Inventory System Question](https://forums.unrealengine.com/t/c-inventory-system-question/331869)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_c3ef07f1](https://forums.unrealengine.com/u/anonymous_user_c3ef07f1)\
**Replies:** 1\
**Last updated:** [September 11, 2015, 3:27pm UTC](https://forums.unrealengine.com/t/c-inventory-system-question/331869 "2015-09-11T15:27:20Z")

</div>

Hi, I am trying to make an inventory system and I wanted to check if my approach is alright. I have set up a base item class that inherits from the actor class, to store basic item information, and I will just make all…

---

## [Kill count HUD woes ;/](https://forums.unrealengine.com/t/kill-count-hud-woes/315142)

<div class="topic-metadata">

**Author:** [@bobbymcsteels\_1](https://forums.unrealengine.com/u/bobbymcsteels_1)\
**Replies:** 7\
**Last updated:** [September 9, 2015, 9:06am UTC](https://forums.unrealengine.com/t/kill-count-hud-woes/315142 "2015-09-09T09:06:52Z")

</div>

Hi I’m fairly new to UDK but coming from years of experience with Unity 3D but I’m struggling to get a kill counter to work where the players kill score is updated on the HUD when an enemy pawn is destroyed. I have a go…

---

## [Copy Inventory Item and Add it to HotBar](https://forums.unrealengine.com/t/copy-inventory-item-and-add-it-to-hotbar/331117)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_c28ad15b](https://forums.unrealengine.com/u/anonymous_user_c28ad15b)\
**Replies:** 0\
**Last updated:** [September 5, 2015, 4:45am UTC](https://forums.unrealengine.com/t/copy-inventory-item-and-add-it-to-hotbar/331117 "2015-09-05T04:45:17Z")

</div>

Hello folks! I have my main widget(Game\_HUD) which displays the inventory and some other stuff and I got another widget which displays my hotbar(HUD\_Hotbars). How would I go about this: I pick up an item and this item…

---

## [C++ TArray Reference performance slow in 4.8 + 4.9](https://forums.unrealengine.com/t/c-tarray-reference-performance-slow-in-4-8-4-9/330907)

<div class="topic-metadata">

**Author:** [@DekanTrue](https://forums.unrealengine.com/u/DekanTrue)\
**Replies:** 14\
**Last updated:** [September 3, 2015, 4:35pm UTC](https://forums.unrealengine.com/t/c-tarray-reference-performance-slow-in-4-8-4-9/330907 "2015-09-03T16:35:58Z")

</div>

I am having a performance issue with a TArray of structs, after upgrading from 4.7.5 to 4.8.3. I’m passing a the reference to the array to a function in a function library, which was working and performing fine in 4.7, …

---

## [Get reference to other object.](https://forums.unrealengine.com/t/get-reference-to-other-object/330880)

<div class="topic-metadata">

**Author:** [@Icaruk](https://forums.unrealengine.com/u/Icaruk)\
**Replies:** 7\
**Last updated:** [September 3, 2015, 4:09pm UTC](https://forums.unrealengine.com/t/get-reference-to-other-object/330880 "2015-09-03T16:09:43Z")

</div>

you can do this in the level blueprint. you can also create event in objects and triggers them from level blueprints additionally you can reference other objects in 4.9 check the release note for LEVEL BLUEPRINT COMMUNI…

---

## [How to properly create a long skill/item descriptions?](https://forums.unrealengine.com/t/how-to-properly-create-a-long-skill-item-descriptions/302575)

<div class="topic-metadata">

**Author:** [@Slavq](https://forums.unrealengine.com/u/Slavq)\
**Replies:** 5\
**Last updated:** [September 2, 2015, 3:57pm UTC](https://forums.unrealengine.com/t/how-to-properly-create-a-long-skill-item-descriptions/302575 "2015-09-02T15:57:35Z")

</div>

As you can see, this is probably not the best option to set up skill/item descriptions (or dialogues, etc.). Typing more and more just increases length of this node and Enter don’t move it to another line. I’ve also t…

---

## [Character showed on the Inventory](https://forums.unrealengine.com/t/character-showed-on-the-inventory/330405)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_c28ad15b](https://forums.unrealengine.com/u/anonymous_user_c28ad15b)\
**Replies:** 1\
**Last updated:** [September 2, 2015, 7:27am UTC](https://forums.unrealengine.com/t/character-showed-on-the-inventory/330405 "2015-09-02T07:27:06Z")

</div>

Hello, I’ve almost finished my inventory system and now I want to expand it. I have searched the google, but didn’t find any answer to fully answer my question so: Is it possible to when the player press the button and…

---

## [Does Property Editor support UStruct Polymorphism?](https://forums.unrealengine.com/t/does-property-editor-support-ustruct-polymorphism/288901)

<div class="topic-metadata">

**Author:** [@JDizzleSTiX\_1](https://forums.unrealengine.com/u/JDizzleSTiX_1)\
**Replies:** 1\
**Last updated:** [September 1, 2015, 7:49pm UTC](https://forums.unrealengine.com/t/does-property-editor-support-ustruct-polymorphism/288901 "2015-09-01T19:49:03Z")

</div>

Hello– I was wondering if I could create a group of UStructs that inherit from a core parent, and then let my object pick which UStruct it is referencing using the Property Editor. I am able to mimic this using UClass,…

---

## [how do you create a UStruct?](https://forums.unrealengine.com/t/how-do-you-create-a-ustruct/330243)

<div class="topic-metadata">

**Author:** [@NullBlack](https://forums.unrealengine.com/u/NullBlack)\
**Replies:** 7\
**Last updated:** [August 28, 2015, 10:28pm UTC](https://forums.unrealengine.com/t/how-do-you-create-a-ustruct/330243 "2015-08-28T22:28:41Z")

</div>

“How do you create a UStruct?” Surely that’s easy. Why am I even asking? BECAUSE IT REFUSES TO COMPILE. USTRUCT requires GENERATED\_USTRUCT\_BODY(). GENERATED\_USTRUCT\_BODY() requires \[whatever\].generated.h. \[whatever\].gen…

---

## [Saved game data from another blueprint](https://forums.unrealengine.com/t/saved-game-data-from-another-blueprint/330248)

<div class="topic-metadata">

**Author:** [@KompaktKat](https://forums.unrealengine.com/u/KompaktKat)\
**Replies:** 0\
**Last updated:** [August 28, 2015, 9:37pm UTC](https://forums.unrealengine.com/t/saved-game-data-from-another-blueprint/330248 "2015-08-28T21:37:56Z")

</div>

How do I save an instance such as health from a player to a SaveGame instance

---

## [Need help with stamina](https://forums.unrealengine.com/t/need-help-with-stamina/330042)

<div class="topic-metadata">

**Author:** [@YEETMAN\_1](https://forums.unrealengine.com/u/YEETMAN_1)\
**Replies:** 4\
**Last updated:** [August 27, 2015, 1:26pm UTC](https://forums.unrealengine.com/t/need-help-with-stamina/330042 "2015-08-27T13:26:38Z")

</div>

I am making a game and I’ve decided to add a stamina bar. When I try to get the variable “Can Run” or “Set Is Sprinting”, nothing is found. Can someone help?

---

## [How to convert a struct to UStruct\*](https://forums.unrealengine.com/t/how-to-convert-a-struct-to-ustruct/329788)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_d9f241d9](https://forums.unrealengine.com/u/anonymous_user_d9f241d9)\
**Replies:** 11\
**Last updated:** [August 25, 2015, 3:53am UTC](https://forums.unrealengine.com/t/how-to-convert-a-struct-to-ustruct/329788 "2015-08-25T03:53:51Z")

</div>

I’m trying to write a function that will take an array of user defined structs and write them to . The UStructToJsonObjectString function requires a UStruct\* pointer as its first parameter, but I can’t figure out how to…

---

## [Find UStruct\* with known user struct](https://forums.unrealengine.com/t/find-ustruct-with-known-user-struct/329789)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_d9f241d9](https://forums.unrealengine.com/u/anonymous_user_d9f241d9)\
**Replies:** 0\
**Last updated:** [August 24, 2015, 9:02pm UTC](https://forums.unrealengine.com/t/find-ustruct-with-known-user-struct/329789 "2015-08-24T21:02:44Z")

</div>

I’m trying to write a function that will write an array of user defined structs into a Json file. I know my struct name, but the first parameter in UStructToJsonObjectString requires a pointer to UStruct. How do I get …

---

## [REINST references bug still exists in 4.8.3](https://forums.unrealengine.com/t/reinst-references-bug-still-exists-in-4-8-3/329057)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_359f4d3c](https://forums.unrealengine.com/u/anonymous_user_359f4d3c)\
**Replies:** 13\
**Last updated:** [August 24, 2015, 5:48pm UTC](https://forums.unrealengine.com/t/reinst-references-bug-still-exists-in-4-8-3/329057 "2015-08-24T17:48:42Z")

</div>

Using 4.8.3, Blueprint-only project. We currently have a problem with one one particular component referenced in 4 other classes (PlayerController, AIController, HUD and another component). Whenever we edit the CombatCo…

---

## [100+ strange texture files appeared in level folder (4.8.3)](https://forums.unrealengine.com/t/100-strange-texture-files-appeared-in-level-folder-4-8-3/329205)

<div class="topic-metadata">

**Author:** [@jules\_ducasse](https://forums.unrealengine.com/u/jules_ducasse)\
**Replies:** 2\
**Last updated:** [August 24, 2015, 7:30am UTC](https://forums.unrealengine.com/t/100-strange-texture-files-appeared-in-level-folder-4-8-3/329205 "2015-08-24T07:30:16Z")

</div>

Hi everyone I’m posting this after a thorough search for a similar post, but it seems like no one has experienced a similar issue yet. So, lately we’ve been experiencing a very peculiar problem concerning some of our l…

---

## [Making an array from variables in multiple instances?](https://forums.unrealengine.com/t/making-an-array-from-variables-in-multiple-instances/329567)

<div class="topic-metadata">

**Author:** [@wgibbsw\_1](https://forums.unrealengine.com/u/wgibbsw_1)\
**Replies:** 2\
**Last updated:** [August 22, 2015, 9:30pm UTC](https://forums.unrealengine.com/t/making-an-array-from-variables-in-multiple-instances/329567 "2015-08-22T21:30:22Z")

</div>

I’ve not been able to find any questions/answers/tutorials that specifically address this but maybe I just suck! I’ve got a public variable attached to a cube with 3 instances, each one with a different variable value. …

---

## [Cannot place variable X in external scope Y](https://forums.unrealengine.com/t/cannot-place-variable-x-in-external-scope-y/309972)

<div class="topic-metadata">

**Author:** [@ZoltanE](https://forums.unrealengine.com/u/ZoltanE)\
**Replies:** 4\
**Last updated:** [August 22, 2015, 9:46am UTC](https://forums.unrealengine.com/t/cannot-place-variable-x-in-external-scope-y/309972 "2015-08-22T09:46:52Z")

</div>

I haven’t worked with Blueprints for the last couple of months so now I’m catching up with the new features. One apparent change is that I can’t reference anymore an inherited component (originally added in the parent cl…

---

## [4.7 problem with deleting array entries](https://forums.unrealengine.com/t/4-7-problem-with-deleting-array-entries/329075)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_e3db79fc](https://forums.unrealengine.com/u/anonymous_user_e3db79fc)\
**Replies:** 3\
**Last updated:** [August 21, 2015, 2:58pm UTC](https://forums.unrealengine.com/t/4-7-problem-with-deleting-array-entries/329075 "2015-08-21T14:58:41Z")

</div>

Hi i have a problem with a part of my code i create an array and i pull out a random object,using get and a random intenger in range,that works as a target for a particle effect,than i feed the location to the spawnact…

---

## [Is it possible to delete .sav files (savegame) from within a blueprint?](https://forums.unrealengine.com/t/is-it-possible-to-delete-sav-files-savegame-from-within-a-blueprint/280631)

<div class="topic-metadata">

**Author:** [@tomofnz](https://forums.unrealengine.com/u/tomofnz)\
**Replies:** 6\
**Last updated:** [August 18, 2015, 3:08pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-delete-sav-files-savegame-from-within-a-blueprint/280631 "2015-08-18T15:08:37Z")

</div>

Is it possible to create some event which can delete the .sav file from within blueprint? Or must we just gate off the ones which were created that we want to look like the player removed them? I already set up coping …

---

## [Blueprint reference bug \[Demo included\]](https://forums.unrealengine.com/t/blueprint-reference-bug-demo-included/322379)

<div class="topic-metadata">

**Author:** [@Slavq](https://forums.unrealengine.com/u/Slavq)\
**Replies:** 16\
**Last updated:** [August 18, 2015, 6:54am UTC](https://forums.unrealengine.com/t/blueprint-reference-bug-demo-included/322379 "2015-08-18T06:54:23Z")

</div>

I’ve noticed this bug when in my game, only after packaging, my player character disappeared with all his controls/camera/etc. I was investigating it for a whole day and finally i’ve managed to spot this bug and recreate…

---

## [Variable with "actor as selected type" always returns null, why?](https://forums.unrealengine.com/t/variable-with-actor-as-selected-type-always-returns-null-why/328721)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_562e11d81](https://forums.unrealengine.com/u/anonymous_user_562e11d81)\
**Replies:** 6\
**Last updated:** [August 16, 2015, 5:22pm UTC](https://forums.unrealengine.com/t/variable-with-actor-as-selected-type-always-returns-null-why/328721 "2015-08-16T17:22:59Z")

</div>

Ok so the variable Main is referencing an actor in the level. There is only one instance of that actor. Now I CAN read a variable “Counter Running” from it just fine but then I have to Set a variable I always get "Access…

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

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