# Editor Scripting

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

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

**Page:** 82

---

## [Best way to store actor reference(s) in variable(s) in level blueprint?](https://forums.unrealengine.com/t/best-way-to-store-actor-reference-s-in-variable-s-in-level-blueprint/393939)

<div class="topic-metadata">

**Author:** [@n2k](https://forums.unrealengine.com/u/n2k)\
**Replies:** 3\
**Last updated:** [May 30, 2017, 7:47am UTC](https://forums.unrealengine.com/t/best-way-to-store-actor-reference-s-in-variable-s-in-level-blueprint/393939 "2017-05-30T07:47:50Z")

</div>

How can I store a Static Mesh Actor reference in a (public) variable in my Level Blueprint? Without initializing them myself this way: http://i.imgur.com/rTKeVqN.png Because I can’t set the default value of a Static M…

---

## [Inventory Item Use Proplem.](https://forums.unrealengine.com/t/inventory-item-use-proplem/394857)

<div class="topic-metadata">

**Author:** [@olinkalex](https://forums.unrealengine.com/u/olinkalex)\
**Replies:** 0\
**Last updated:** [May 28, 2017, 5:28am UTC](https://forums.unrealengine.com/t/inventory-item-use-proplem/394857 "2017-05-28T05:28:01Z")

</div>

Okay, I don’t really know how to explain this issue, but I was making a inventory system for a College Projected. I had issues with a previous inventory system, so I tried a different tutorial. This one - \[link text\]\[1\].…

---

## [Can't access ItemInfo-variable from Inventory-Blueprint](https://forums.unrealengine.com/t/cant-access-iteminfo-variable-from-inventory-blueprint/394674)

<div class="topic-metadata">

**Author:** [@Kuhney](https://forums.unrealengine.com/u/Kuhney)\
**Replies:** 0\
**Last updated:** [May 26, 2017, 1:30pm UTC](https://forums.unrealengine.com/t/cant-access-iteminfo-variable-from-inventory-blueprint/394674 "2017-05-26T13:30:13Z")

</div>

Hello I hope you can help me. I try to show the information of an selected Item in my Inventory but get Accessed none Errors. I tried many other ways to accomplish it but none of them worked.

---

## [Unable to read variable from Actor Component](https://forums.unrealengine.com/t/unable-to-read-variable-from-actor-component/394426)

<div class="topic-metadata">

**Author:** [@DeevoTe](https://forums.unrealengine.com/u/DeevoTe)\
**Replies:** 4\
**Last updated:** [May 26, 2017, 12:41am UTC](https://forums.unrealengine.com/t/unable-to-read-variable-from-actor-component/394426 "2017-05-26T00:41:25Z")

</div>

I have been struggling to get my text box function to read any variables from one of my actor component blueprints. The variable I’m trying to read(ContaminationTime - float) is public and editable. Any help wou…

---

## [My game only works once when i duplicate my project?!](https://forums.unrealengine.com/t/my-game-only-works-once-when-i-duplicate-my-project/394170)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_fc76fc7b1](https://forums.unrealengine.com/u/anonymous_user_fc76fc7b1)\
**Replies:** 1\
**Last updated:** [May 21, 2017, 7:24pm UTC](https://forums.unrealengine.com/t/my-game-only-works-once-when-i-duplicate-my-project/394170 "2017-05-21T19:24:53Z")

</div>

I have a project with an inventory for the character and i found out that my client can’t add items to the inventory- well at least not after the second game in pie in the project. when i migrate the whole project and te…

---

## [Constant Crashes on Startup coming from Savegame Reference.](https://forums.unrealengine.com/t/constant-crashes-on-startup-coming-from-savegame-reference/392258)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_74f27e54](https://forums.unrealengine.com/u/anonymous_user_74f27e54)\
**Replies:** 6\
**Last updated:** [May 19, 2017, 7:11pm UTC](https://forums.unrealengine.com/t/constant-crashes-on-startup-coming-from-savegame-reference/392258 "2017-05-19T19:11:00Z")

</div>

I’ve had a lot of issues lately with using SaveGame references in my project. I am containing a bunch of mapped structs (using Strings as keys and structs as values) to save the game’s characters, inventory, etc. However…

---

## [Get current map widget](https://forums.unrealengine.com/t/get-current-map-widget/394050)

<div class="topic-metadata">

**Author:** [@brothermechanic](https://forums.unrealengine.com/u/brothermechanic)\
**Replies:** 0\
**Last updated:** [May 19, 2017, 5:14pm UTC](https://forums.unrealengine.com/t/get-current-map-widget/394050 "2017-05-19T17:14:12Z")

</div>

Hello all I try to get solution for changing current map widget. It need to detect current active trigger box where player is located This trigger box can overlapped and be one above other, so i try to add priority to…

---

## [セーブ・ロードができません。](https://forums.unrealengine.com/t/topic/393832)

<div class="topic-metadata">

**Author:** [@Anonymous\_28554930ed732d43e9e572679de253a4](https://forums.unrealengine.com/u/Anonymous_28554930ed732d43e9e572679de253a4)\
**Replies:** 4\
**Last updated:** [May 19, 2017, 12:15pm UTC](https://forums.unrealengine.com/t/topic/393832 "2017-05-19T12:15:53Z")

</div>

つい先日から触り始めた初心者ですがよろしくお願いします。 下記のサイトを参考にさせて頂き、セーブ機能を学んでいたのですが、セーブができません。 http://hogetatu.hatenablog.com/entry/2015/07/26/003427 サードパーソンテンプレートから何も手を加えていない状態で、上記サイトの記述通りセーブ・ロード機能を実装してみたのですが、うまく行きませんでした。 コンパイル時に…

---

## [Changing BP Struct data breaks blueprints and 'deletes' struct.](https://forums.unrealengine.com/t/changing-bp-struct-data-breaks-blueprints-and-deletes-struct/393959)

<div class="topic-metadata">

**Author:** [@BhMbOb](https://forums.unrealengine.com/u/BhMbOb)\
**Replies:** 0\
**Last updated:** [May 18, 2017, 4:11pm UTC](https://forums.unrealengine.com/t/changing-bp-struct-data-breaks-blueprints-and-deletes-struct/393959 "2017-05-18T16:11:43Z")

</div>

Hello, This has happened around 3 times recently, whenever I edit a variable inside my Blueprint Structure (Eg, HotbarColour in the image below), any blueprint referencing this struct deletes any references to it, unho…

---

## [How to connect an actor with pawn to access the Pawn variables?](https://forums.unrealengine.com/t/how-to-connect-an-actor-with-pawn-to-access-the-pawn-variables/393273)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_95f0054b](https://forums.unrealengine.com/u/anonymous_user_95f0054b)\
**Replies:** 3\
**Last updated:** [May 11, 2017, 8:13am UTC](https://forums.unrealengine.com/t/how-to-connect-an-actor-with-pawn-to-access-the-pawn-variables/393273 "2017-05-11T08:13:22Z")

</div>

Hello guys! I have a problems with variables of a Pawn. I have a Pawn where i change different variables and inputs (like a bool variable of left click mouse). I have a Static Mesh actor. I want to interact with actor u…

---

## [How to store 'this' pointer to UBlueprintFunctionLibrary?](https://forums.unrealengine.com/t/how-to-store-this-pointer-to-ublueprintfunctionlibrary/393210)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_d14d1f4e](https://forums.unrealengine.com/u/anonymous_user_d14d1f4e)\
**Replies:** 4\
**Last updated:** [May 11, 2017, 7:09am UTC](https://forums.unrealengine.com/t/how-to-store-this-pointer-to-ublueprintfunctionlibrary/393210 "2017-05-11T07:09:38Z")

</div>

I created my UBlueprintFunctionLibrary-derived class with member functions and private variables. I’m using it from blueprints by creating an instance of that class with the construct object from class node. My question…

---

## [How do I have pickups not spawn on begin play if they have already been picked up by the player](https://forums.unrealengine.com/t/how-do-i-have-pickups-not-spawn-on-begin-play-if-they-have-already-been-picked-up-by-the-player/389384)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_e19b70ae1](https://forums.unrealengine.com/u/anonymous_user_e19b70ae1)\
**Replies:** 2\
**Last updated:** [May 10, 2017, 9:59am UTC](https://forums.unrealengine.com/t/how-do-i-have-pickups-not-spawn-on-begin-play-if-they-have-already-been-picked-up-by-the-player/389384 "2017-05-10T09:59:22Z")

</div>

My current set up - is on begin play → checks my character’s inventory - which has been saved to a savegameBP → gets all actors of pickup class → checks names to see if any of them match my character’s inventory items → …

---

## [Save Game with Multiple Variables](https://forums.unrealengine.com/t/save-game-with-multiple-variables/393007)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_ca0743c9](https://forums.unrealengine.com/u/anonymous_user_ca0743c9)\
**Replies:** 4\
**Last updated:** [May 8, 2017, 6:36am UTC](https://forums.unrealengine.com/t/save-game-with-multiple-variables/393007 "2017-05-08T06:36:57Z")

</div>

I have a save game object with multiple variables. Let’s say they are A, B, C and D. Variables A and B are saved from a certain level and similarly, the other two variables are saved from another level. Whenever I save …

---

## [Struct circular dependency](https://forums.unrealengine.com/t/struct-circular-dependency/392933)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_f7c0f7221](https://forums.unrealengine.com/u/anonymous_user_f7c0f7221)\
**Replies:** 2\
**Last updated:** [May 7, 2017, 10:46am UTC](https://forums.unrealengine.com/t/struct-circular-dependency/392933 "2017-05-07T10:46:30Z")

</div>

Hi, I’m trying to create a c++ struct like so: USTRUCT(BlueprintType) struct A{ B\* var; } USTRUCT(BlueprintType) struct B{ TArray\<A\> var; } but when I try to compile, UE tells me that B is an undecl…

---

## [Out of scope casting? UE4.14 \[update\]](https://forums.unrealengine.com/t/out-of-scope-casting-ue4-14-update/392559)

<div class="topic-metadata">

**Author:** [@TheNomadNamedY](https://forums.unrealengine.com/u/TheNomadNamedY)\
**Replies:** 10\
**Last updated:** [May 4, 2017, 10:07am UTC](https://forums.unrealengine.com/t/out-of-scope-casting-ue4-14-update/392559 "2017-05-04T10:07:07Z")

</div>

I’m writing this blueprint inwitch all the characters the player controls are put in an array and sorted by speed (smallest number to biggest). each game object has a turn speed and this blue print is supose to compare e…

---

## [Only the last variable updated is saved](https://forums.unrealengine.com/t/only-the-last-variable-updated-is-saved/392564)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_f5aedf721](https://forums.unrealengine.com/u/anonymous_user_f5aedf721)\
**Replies:** 4\
**Last updated:** [May 4, 2017, 8:40am UTC](https://forums.unrealengine.com/t/only-the-last-variable-updated-is-saved/392564 "2017-05-04T08:40:59Z")

</div>

I have been looking everywhere to try and find a solution for my problem. I have a skill tree (to upgrade player stats) that is opens initially in the character create level. I have a SaveGame blueprint (“PlayerSave”) th…

---

## [Is There a Way To Determine When the Save Game Process is Over For Displaying A Save Game Icon or Warning](https://forums.unrealengine.com/t/is-there-a-way-to-determine-when-the-save-game-process-is-over-for-displaying-a-save-game-icon-or-warning/392641)

<div class="topic-metadata">

**Author:** [@Load\_Time](https://forums.unrealengine.com/u/Load_Time)\
**Replies:** 0\
**Last updated:** [May 3, 2017, 11:15pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-determine-when-the-save-game-process-is-over-for-displaying-a-save-game-icon-or-warning/392641 "2017-05-03T23:15:08Z")

</div>

Is it possible to determine when the saving process ends, so that a save game icon (such as a disk image) or warning not to turn off the computer can be displayed, and then removed when saving has completed? I also want…

---

## [Show/Hide widget when i press a button](https://forums.unrealengine.com/t/show-hide-widget-when-i-press-a-button/392574)

<div class="topic-metadata">

**Author:** [@Im\_feeling\_manic](https://forums.unrealengine.com/u/Im_feeling_manic)\
**Replies:** 1\
**Last updated:** [May 3, 2017, 9:01pm UTC](https://forums.unrealengine.com/t/show-hide-widget-when-i-press-a-button/392574 "2017-05-03T21:01:43Z")

</div>

So i’m making an inventory so i’m trying to click a button to show the inventory(widget) and click button to hide the inventory(widget) what blueprint should I make ?

---

## [Why can't I set my boolean?](https://forums.unrealengine.com/t/why-cant-i-set-my-boolean/392446)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_b4c62abb](https://forums.unrealengine.com/u/anonymous_user_b4c62abb)\
**Replies:** 0\
**Last updated:** [May 2, 2017, 6:35am UTC](https://forums.unrealengine.com/t/why-cant-i-set-my-boolean/392446 "2017-05-02T06:35:42Z")

</div>

\[Album\] imgur.com I’m trying to use this “novice” boolean as a glo…

---

## [Renaming any AxisInput causes reference warning in BluePrints](https://forums.unrealengine.com/t/renaming-any-axisinput-causes-reference-warning-in-blueprints/387575)

<div class="topic-metadata">

**Author:** [@EvoPulseGaming](https://forums.unrealengine.com/u/EvoPulseGaming)\
**Replies:** 5\
**Last updated:** [April 27, 2017, 8:27pm UTC](https://forums.unrealengine.com/t/renaming-any-axisinput-causes-reference-warning-in-blueprints/387575 "2017-04-27T20:27:50Z")

</div>

Stock download of UE 4.15 from Epic Game Launcher. Renaming axisinput variable names in project settings does not update references to said variable names. Steps to reproduce: New project New Pawn blueprint New AxisI…

---

## [add to array is not working with structures](https://forums.unrealengine.com/t/add-to-array-is-not-working-with-structures/391943)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_02559e3d](https://forums.unrealengine.com/u/anonymous_user_02559e3d)\
**Replies:** 4\
**Last updated:** [April 27, 2017, 12:18am UTC](https://forums.unrealengine.com/t/add-to-array-is-not-working-with-structures/391943 "2017-04-27T00:18:32Z")

</div>

I am trying to create an inventory system, been having a lot of struggles but finally got something structured but when testing my inventory system is not containing the item I am trying to add. For testing purposes I am…

---

## [Generate Project Files include python scripts](https://forums.unrealengine.com/t/generate-project-files-include-python-scripts/391965)

<div class="topic-metadata">

**Author:** [@TQwan](https://forums.unrealengine.com/u/TQwan)\
**Replies:** 0\
**Last updated:** [April 26, 2017, 11:06am UTC](https://forums.unrealengine.com/t/generate-project-files-include-python-scripts/391965 "2017-04-26T11:06:55Z")

</div>

Hi, I’m using Embed Python in Unreal Engine 4. This allows me to execute python scripts while running the UE. The python scripts are placed in /Content/Scripts example: /Content/Scripts/pythonscript.py Can you please…

---

## [How to make target variable bool node](https://forums.unrealengine.com/t/how-to-make-target-variable-bool-node/351766)

<div class="topic-metadata">

**Author:** [@TenashiousG](https://forums.unrealengine.com/u/TenashiousG)\
**Replies:** 5\
**Last updated:** [April 26, 2017, 5:36am UTC](https://forums.unrealengine.com/t/how-to-make-target-variable-bool-node/351766 "2017-04-26T05:36:24Z")

</div>

---

## [Ghost references from deleted variable](https://forums.unrealengine.com/t/ghost-references-from-deleted-variable/391680)

<div class="topic-metadata">

**Author:** [@uced](https://forums.unrealengine.com/u/uced)\
**Replies:** 2\
**Last updated:** [April 25, 2017, 8:36pm UTC](https://forums.unrealengine.com/t/ghost-references-from-deleted-variable/391680 "2017-04-25T20:36:19Z")

</div>

Hello ! I defined an anim asset in an actor: UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Yag) UAnimationAsset\* WeaponBlendSpace; Then in the blueprint inheriting from that actor, it was assigned a blendspa…

---

## [How to reference a spawned player character](https://forums.unrealengine.com/t/how-to-reference-a-spawned-player-character/391317)

<div class="topic-metadata">

**Author:** [@Menelin](https://forums.unrealengine.com/u/Menelin)\
**Replies:** 5\
**Last updated:** [April 24, 2017, 2:54pm UTC](https://forums.unrealengine.com/t/how-to-reference-a-spawned-player-character/391317 "2017-04-24T14:54:22Z")

</div>

I have the Player Start actor set up where it needs to be, and I have the game mode set to spawn a character blueprint at Player Start, but how would I reference the spawned character blueprint instead of the Player Star…

---

## [AI Reference Always not Valid](https://forums.unrealengine.com/t/ai-reference-always-not-valid/391393)

<div class="topic-metadata">

**Author:** [@Sntfon100](https://forums.unrealengine.com/u/Sntfon100)\
**Replies:** 2\
**Last updated:** [April 20, 2017, 3:06pm UTC](https://forums.unrealengine.com/t/ai-reference-always-not-valid/391393 "2017-04-20T15:06:58Z")

</div>

I have 2 types of AI, friendly one and enemy ai. In my friendly ai blueprint iv’e made a Reference variable to my enemy ai. Now every tick i check if my reference is valid but it’s always not. Can someone explain me why …

---

## [Cant pass a variable to a Pawn](https://forums.unrealengine.com/t/cant-pass-a-variable-to-a-pawn/391328)

<div class="topic-metadata">

**Author:** [@Bry55](https://forums.unrealengine.com/u/Bry55)\
**Replies:** 2\
**Last updated:** [April 19, 2017, 7:39pm UTC](https://forums.unrealengine.com/t/cant-pass-a-variable-to-a-pawn/391328 "2017-04-19T19:39:59Z")

</div>

Hi, I m having a very frustrating issue. I m using a “spawner” when I click on it it spawn my AI but I want to pass it a variable to define is kind. So I can change is mesh on spawn but I cant set a stupid variable. I do…

---

## [Editor Crash on opening project](https://forums.unrealengine.com/t/editor-crash-on-opening-project/391246)

<div class="topic-metadata">

**Author:** [@Bretonic](https://forums.unrealengine.com/u/Bretonic)\
**Replies:** 1\
**Last updated:** [April 18, 2017, 6:16pm UTC](https://forums.unrealengine.com/t/editor-crash-on-opening-project/391246 "2017-04-18T18:16:23Z")

</div>

Adding following lines of code caused my project to crash: for (int i = 0; i \< ItemData.ItemAreas.Num(); i++) { ItemData.ItemAreas\[i\].ItemAreaCollisionBox = CreateDefaultSubobject\<UBoxComponent\>(TEXT("Item Collision …

---

## [Array of pawn class reseting when saving game](https://forums.unrealengine.com/t/array-of-pawn-class-reseting-when-saving-game/390830)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_7133436a](https://forums.unrealengine.com/u/anonymous_user_7133436a)\
**Replies:** 4\
**Last updated:** [April 18, 2017, 5:42pm UTC](https://forums.unrealengine.com/t/array-of-pawn-class-reseting-when-saving-game/390830 "2017-04-18T17:42:28Z")

</div>

I think this is actually a bug, I have a open world car game project, when I go to the store, I can by a new car, thus adding the bought car into the array of cars the player own (a Pawn Class array), and it saves fine. …

---

## [binding event from my save game causes problem on exit/quit](https://forums.unrealengine.com/t/binding-event-from-my-save-game-causes-problem-on-exit-quit/376494)

<div class="topic-metadata">

**Author:** [@BPANDREW](https://forums.unrealengine.com/u/BPANDREW)\
**Replies:** 20\
**Last updated:** [April 17, 2017, 1:50pm UTC](https://forums.unrealengine.com/t/binding-event-from-my-save-game-causes-problem-on-exit-quit/376494 "2017-04-17T13:50:55Z")

</div>

my save game class I defined in c++ is a member of my controller, I bind a event in my controller when my save game contents change. on map transition/editor quit it breaks here, I can handle this (by unbinding) for mos…

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

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