# Editor Scripting

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

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

**Page:** 74

---

## [Performing any action on a user-defined struct crashes the editor](https://forums.unrealengine.com/t/performing-any-action-on-a-user-defined-struct-crashes-the-editor/426102)

<div class="topic-metadata">

**Author:** [@exxecutioner](https://forums.unrealengine.com/u/exxecutioner)\
**Replies:** 4\
**Last updated:** [May 28, 2018, 11:31pm UTC](https://forums.unrealengine.com/t/performing-any-action-on-a-user-defined-struct-crashes-the-editor/426102 "2018-05-28T23:31:15Z")

</div>

Hi, So I was meaning to create a Weapon slots system for a game I’m working on, and my idea was that I’d have a struct representing a Weapon Slot, which I could just add/attach to the character. This is the first time I…

---

## [Out of memory / Asset loading management](https://forums.unrealengine.com/t/out-of-memory-asset-loading-management/425354)

<div class="topic-metadata">

**Author:** [@CyanBalloon](https://forums.unrealengine.com/u/CyanBalloon)\
**Replies:** 6\
**Last updated:** [May 23, 2018, 9:54pm UTC](https://forums.unrealengine.com/t/out-of-memory-asset-loading-management/425354 "2018-05-23T21:54:12Z")

</div>

Hi there, I’m currently working on a pretty massive project, and we’re running out of memory pretty fast on some platforms, and we’re unsure as to why. We’ve run a memreport while playing the game, and the number of ob…

---

## [UMG inv clicking](https://forums.unrealengine.com/t/umg-inv-clicking/307467)

<div class="topic-metadata">

**Author:** [@Killedge](https://forums.unrealengine.com/u/Killedge)\
**Replies:** 4\
**Last updated:** [May 23, 2018, 12:03pm UTC](https://forums.unrealengine.com/t/umg-inv-clicking/307467 "2018-05-23T12:03:36Z")

</div>

Hello! I’ve created a inventory base on UMG, and it contains a simple buttons in vectricalbox. I wants it to work for following GIF. Anyone can help?

---

## [Saves reset to default after restarting game](https://forums.unrealengine.com/t/saves-reset-to-default-after-restarting-game/425611)

<div class="topic-metadata">

**Author:** [@Qbsoon](https://forums.unrealengine.com/u/Qbsoon)\
**Replies:** 0\
**Last updated:** [May 21, 2018, 4:00pm UTC](https://forums.unrealengine.com/t/saves-reset-to-default-after-restarting-game/425611 "2018-05-21T16:00:10Z")

</div>

Hi! Today I finally done save game option. And it’s working. I can save my position and when I move to somewhere else I can load my saved position. But when I come back to editor and then back to the game, I don’t have …

---

## [Save variables and Retrieve them on the go](https://forums.unrealengine.com/t/save-variables-and-retrieve-them-on-the-go/425398)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_e084f2a3](https://forums.unrealengine.com/u/anonymous_user_e084f2a3)\
**Replies:** 6\
**Last updated:** [May 19, 2018, 8:19pm UTC](https://forums.unrealengine.com/t/save-variables-and-retrieve-them-on-the-go/425398 "2018-05-19T20:19:22Z")

</div>

So i have looked into many resources but some might have been good but doesn’t work for what i need. I have a weather testing world that i need to save booleans for when an weather event is active. (Ex When rain’s butt…

---

## [TArray's tempalate can being ustruct pointer?](https://forums.unrealengine.com/t/tarrays-tempalate-can-being-ustruct-pointer/425221)

<div class="topic-metadata">

**Author:** [@TigerFish89](https://forums.unrealengine.com/u/TigerFish89)\
**Replies:** 1\
**Last updated:** [May 19, 2018, 12:18am UTC](https://forums.unrealengine.com/t/tarrays-tempalate-can-being-ustruct-pointer/425221 "2018-05-19T00:18:39Z")

</div>

Hello. I try to make mission table using json. So, I made event sturct below // Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "EventStruct.g…

---

## [Inventory Slot-Based Crafting System](https://forums.unrealengine.com/t/inventory-slot-based-crafting-system/425101)

<div class="topic-metadata">

**Author:** [@miramaslow](https://forums.unrealengine.com/u/miramaslow)\
**Replies:** 4\
**Last updated:** [May 17, 2018, 6:10am UTC](https://forums.unrealengine.com/t/inventory-slot-based-crafting-system/425101 "2018-05-17T06:10:08Z")

</div>

Hi, I would like to do a simple crafting system. I have an Inventory completed but this is one of the elements I would like to implement in my game. The item should just be combined from action menu on inventory (right c…

---

## [How to create a variable from Integer ?](https://forums.unrealengine.com/t/how-to-create-a-variable-from-integer/425156)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_c9f360761](https://forums.unrealengine.com/u/anonymous_user_c9f360761)\
**Replies:** 3\
**Last updated:** [May 16, 2018, 2:20pm UTC](https://forums.unrealengine.com/t/how-to-create-a-variable-from-integer/425156 "2018-05-16T14:20:35Z")

</div>

I need to create a variable from Integer , for example : Integer1 \[100\] , then I want to spawn a variable named 100 . Is there anyway to do that ?

---

## [Could not find all variable references in blueprint](https://forums.unrealengine.com/t/could-not-find-all-variable-references-in-blueprint/381836)

<div class="topic-metadata">

**Author:** [@Pavel\_Halbich](https://forums.unrealengine.com/u/Pavel_Halbich)\
**Replies:** 2\
**Last updated:** [May 14, 2018, 1:29pm UTC](https://forums.unrealengine.com/t/could-not-find-all-variable-references-in-blueprint/381836 "2018-05-14T13:29:06Z")

</div>

I’m working on my thesis (source: \[GitHub - halbich/TauCetiF2 at c6b72cd8edbf62906cd3b6606b748b1b7b563fbf\]\[1\] ). I update engine version regullary (currently I have the latest engine version 4.14.3). I’m experiencing str…

---

## [Get variable from randomly spawned actor?](https://forums.unrealengine.com/t/get-variable-from-randomly-spawned-actor/424698)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_eb985e05](https://forums.unrealengine.com/u/anonymous_user_eb985e05)\
**Replies:** 12\
**Last updated:** [May 12, 2018, 4:44pm UTC](https://forums.unrealengine.com/t/get-variable-from-randomly-spawned-actor/424698 "2018-05-12T16:44:44Z")

</div>

Hi all, I created several shape actors (for example cube, sphere, cylinder, cone, etc.). Then upon button press I will spawn them RANDOMLY in my level. When any of them spawn I will need to print their name on my widge…

---

## [Changing actor mesh material with UMG button click c++](https://forums.unrealengine.com/t/changing-actor-mesh-material-with-umg-button-click-c/424268)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_bf3d31f5](https://forums.unrealengine.com/u/anonymous_user_bf3d31f5)\
**Replies:** 6\
**Last updated:** [May 7, 2018, 2:22pm UTC](https://forums.unrealengine.com/t/changing-actor-mesh-material-with-umg-button-click-c/424268 "2018-05-07T14:22:48Z")

</div>

I’m new to UE4 and find most of the help related to blueprints. I simply created a UI Widget Blueprint with one button and in Event Graph: Event BeginPlay-\>Create UserWidget-\>Add to Viewport. Then created an actor C++ cl…

---

## [How to Check if Array is Empty Before a ForEachLoop?](https://forums.unrealengine.com/t/how-to-check-if-array-is-empty-before-a-foreachloop/424497)

<div class="topic-metadata">

**Author:** [@Dylanrockin](https://forums.unrealengine.com/u/Dylanrockin)\
**Replies:** 2\
**Last updated:** [May 7, 2018, 7:35am UTC](https://forums.unrealengine.com/t/how-to-check-if-array-is-empty-before-a-foreachloop/424497 "2018-05-07T07:35:59Z")

</div>

I am having an issue where I am checking the validity of a combat mode initializer where it gets all actors of class BP\_Example\_Enemy and if there are no more on the map it won’t tell the game that I am no longer in comb…

---

## [Wrong Number of arguments error](https://forums.unrealengine.com/t/wrong-number-of-arguments-error/424178)

<div class="topic-metadata">

**Author:** [@Icepaw](https://forums.unrealengine.com/u/Icepaw)\
**Replies:** 6\
**Last updated:** [May 3, 2018, 12:04pm UTC](https://forums.unrealengine.com/t/wrong-number-of-arguments-error/424178 "2018-05-03T12:04:25Z")

</div>

So I’m trying to make an attribute/stat system that I can use to pass between maps and gamemodes (starting from the overworld and transitioning to the battle scene and back). I want to make it so that I can change the st…

---

## [Saving Object Values When Saving Game](https://forums.unrealengine.com/t/saving-object-values-when-saving-game/423111)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_d4b2883d1](https://forums.unrealengine.com/u/anonymous_user_d4b2883d1)\
**Replies:** 6\
**Last updated:** [May 2, 2018, 9:36pm UTC](https://forums.unrealengine.com/t/saving-object-values-when-saving-game/423111 "2018-05-02T21:36:10Z")

</div>

I have written a class called “Inventory Slots.” These slots contain a type of blueprint that can be stored (base item) and the index in which it is stored. These slots are then stored in an array called “Item List” insi…

---

## [FSTRUCT() pointers can be used as return value in none UFUNCTION() function, but not as a parameter return value](https://forums.unrealengine.com/t/fstruct-pointers-can-be-used-as-return-value-in-none-ufunction-function-but-not-as-a-parameter-return-value/424046)

<div class="topic-metadata">

**Author:** [@carpet200](https://forums.unrealengine.com/u/carpet200)\
**Replies:** 3\
**Last updated:** [May 2, 2018, 8:41am UTC](https://forums.unrealengine.com/t/fstruct-pointers-can-be-used-as-return-value-in-none-ufunction-function-but-not-as-a-parameter-return-value/424046 "2018-05-02T08:41:22Z")

</div>

I made this observation when some of my functions could return a FStruct pointer but some couldn’t (they where always Null). I have a TArray with FStructs that i wanted to get references from. To do that i made a functi…

---

## [Why isn't VInterpTo functioning here?](https://forums.unrealengine.com/t/why-isnt-vinterpto-functioning-here/325177)

<div class="topic-metadata">

**Author:** [@HInoue](https://forums.unrealengine.com/u/HInoue)\
**Replies:** 1\
**Last updated:** [May 1, 2018, 6:09pm UTC](https://forums.unrealengine.com/t/why-isnt-vinterpto-functioning-here/325177 "2018-05-01T18:09:52Z")

</div>

I’m making an animation notify which I want to smoothly move the character forward in the direction of their current facing. Since I want smooth motion instead of teleportation I’m using VInterpTo: void UMovementNotifyS…

---

## [BP Custom event not triggering](https://forums.unrealengine.com/t/bp-custom-event-not-triggering/423757)

<div class="topic-metadata">

**Author:** [@Crunkusmunkus](https://forums.unrealengine.com/u/Crunkusmunkus)\
**Replies:** 4\
**Last updated:** [April 30, 2018, 10:58am UTC](https://forums.unrealengine.com/t/bp-custom-event-not-triggering/423757 "2018-04-30T10:58:33Z")

</div>

Hi all I’m still new to blueprints so please excuse a potentially silly question. I’m having trouble getting a custom event to trigger. I’m able to get the first BP to trigger without issue but I can’t get it to trigger …

---

## [BP Custom event not changing variable](https://forums.unrealengine.com/t/bp-custom-event-not-changing-variable/423923)

<div class="topic-metadata">

**Author:** [@Crunkusmunkus](https://forums.unrealengine.com/u/Crunkusmunkus)\
**Replies:** 8\
**Last updated:** [April 30, 2018, 2:31am UTC](https://forums.unrealengine.com/t/bp-custom-event-not-changing-variable/423923 "2018-04-30T02:31:38Z")

</div>

Hi all. My custom event UnlockInteriorDoor fires but does not set the variable Boolean. I have tried with multiple variable types but none will change. If I use the custom Event Look the variable changes without issue. W…

---

## [Getting Reference to Enemy Character](https://forums.unrealengine.com/t/getting-reference-to-enemy-character/423918)

<div class="topic-metadata">

**Author:** [@Dylanrockin](https://forums.unrealengine.com/u/Dylanrockin)\
**Replies:** 12\
**Last updated:** [April 30, 2018, 2:04am UTC](https://forums.unrealengine.com/t/getting-reference-to-enemy-character/423918 "2018-04-30T02:04:46Z")

</div>

Hello, I am having a hard time trying to figure out how to get a reference to my Enemy1 Blueprint for my damage calculation Function. I can do it normally with getting a reference to the player controller, but not to En…

---

## [Something like a struct but with more control?](https://forums.unrealengine.com/t/something-like-a-struct-but-with-more-control/423742)

<div class="topic-metadata">

**Author:** [@Tyguy717](https://forums.unrealengine.com/u/Tyguy717)\
**Replies:** 3\
**Last updated:** [April 27, 2018, 1:37pm UTC](https://forums.unrealengine.com/t/something-like-a-struct-but-with-more-control/423742 "2018-04-27T13:37:37Z")

</div>

So last night I was working on an inventory system, and made a struct to create a slot variable. I had the thought to add a Boolean that would return weather or not the slot was empty, based on if an object was set. ← Re…

---

## [Saving Object-References/Pointers in a SaveGame?](https://forums.unrealengine.com/t/saving-object-references-pointers-in-a-savegame/358949)

<div class="topic-metadata">

**Author:** [@MaxPower42](https://forums.unrealengine.com/u/MaxPower42)\
**Replies:** 7\
**Last updated:** [April 25, 2018, 6:24pm UTC](https://forums.unrealengine.com/t/saving-object-references-pointers-in-a-savegame/358949 "2018-04-25T18:24:58Z")

</div>

Is there a standardized way to save/serialize a UPROPERTY()-pointer to another object? Since the UE4 editor obviously handles references on an engine-level and makes sure they persist throughout the sessions, I thought …

---

## [Scene Component doesn't update array values](https://forums.unrealengine.com/t/scene-component-doesnt-update-array-values/423293)

<div class="topic-metadata">

**Author:** [@3DVice](https://forums.unrealengine.com/u/3DVice)\
**Replies:** 7\
**Last updated:** [April 25, 2018, 1:59pm UTC](https://forums.unrealengine.com/t/scene-component-doesnt-update-array-values/423293 "2018-04-25T13:59:35Z")

</div>

If a scene compoment has an dictionary variable and is attached to an actor. The array values aren’t updated propery. \[Here’s a link\]\[1\] to the example project if someone wants to run it and check for themselves The e…

---

## [Inheritance in BP: Parent BeginPlay Event not executed](https://forums.unrealengine.com/t/inheritance-in-bp-parent-beginplay-event-not-executed/423475)

<div class="topic-metadata">

**Author:** [@Dividuum](https://forums.unrealengine.com/u/Dividuum)\
**Replies:** 8\
**Last updated:** [April 25, 2018, 7:13am UTC](https://forums.unrealengine.com/t/inheritance-in-bp-parent-beginplay-event-not-executed/423475 "2018-04-25T07:13:22Z")

</div>

Hi there, I have set up three Blueprints: my “basicAIController”, who is the parent class of my “characterAIController” and my “NPCAIController”. Every Childs BeginPlay Event executes first it’s parents BeginPlay event. …

---

## [Static mesh component array variable doesn't populate](https://forums.unrealengine.com/t/static-mesh-component-array-variable-doesnt-populate/423418)

<div class="topic-metadata">

**Author:** [@suisso](https://forums.unrealengine.com/u/suisso)\
**Replies:** 3\
**Last updated:** [April 24, 2018, 6:05am UTC](https://forums.unrealengine.com/t/static-mesh-component-array-variable-doesnt-populate/423418 "2018-04-24T06:05:12Z")

</div>

Hello, I am trying to load a list of static meshes into a variable. I am confused, since I can print what I want just after creating my variable, however, when I get my variable separately and try to print its content,…

---

## [Store Class Type in Blueprint variable ?](https://forums.unrealengine.com/t/store-class-type-in-blueprint-variable/290418)

<div class="topic-metadata">

**Author:** [@Saitho](https://forums.unrealengine.com/u/Saitho)\
**Replies:** 3\
**Last updated:** [April 22, 2018, 3:22pm UTC](https://forums.unrealengine.com/t/store-class-type-in-blueprint-variable/290418 "2018-04-22T15:22:53Z")

</div>

I need to store multiple different Blueprint-Actor-Classes in an Array, and spawn an instance of them on demand. Is that possible ? What type of array do I need ?

---

## [Reroute node for Array Map](https://forums.unrealengine.com/t/reroute-node-for-array-map/422542)

<div class="topic-metadata">

**Author:** [@SandbergSan](https://forums.unrealengine.com/u/SandbergSan)\
**Replies:** 2\
**Last updated:** [April 13, 2018, 5:55pm UTC](https://forums.unrealengine.com/t/reroute-node-for-array-map/422542 "2018-04-13T17:55:34Z")

</div>

I find it hard to figure out how to do reroute nodes for Map type arrays. I think it is implemented somehow since i’ve managed to do a wildcard reroute for an Array Map once or twice, but now i can’t remember how i did i…

---

## ["Can't find file" for hidden/unkown references](https://forums.unrealengine.com/t/cant-find-file-for-hidden-unkown-references/422473)

<div class="topic-metadata">

**Author:** [@Kalabrix](https://forums.unrealengine.com/u/Kalabrix)\
**Replies:** 0\
**Last updated:** [April 12, 2018, 8:55pm UTC](https://forums.unrealengine.com/t/cant-find-file-for-hidden-unkown-references/422473 "2018-04-12T20:55:30Z")

</div>

Hello fellow devs, First of all: I am aware of the similar topics. None of them helped, unfortunately. I am struggling with this for hours, now. I hope you can help me with this strange situation. I am also unable to…

---

## [Retreiving a reference to Player Pawn/Character from C++ Player Controller](https://forums.unrealengine.com/t/retreiving-a-reference-to-player-pawn-character-from-c-player-controller/334355)

<div class="topic-metadata">

**Author:** [@DesertEagle\_PWN](https://forums.unrealengine.com/u/DesertEagle_PWN)\
**Replies:** 6\
**Last updated:** [April 11, 2018, 12:54am UTC](https://forums.unrealengine.com/t/retreiving-a-reference-to-player-pawn-character-from-c-player-controller/334355 "2018-04-11T00:54:10Z")

</div>

How would I retreive a non-null reference to a player character/pawn from a C++ Player Controller? I am using GameMode for possession of pawns. I have tried using GetPawn() during both BeginPlay() and BeginPlayingState(…

---

## [Reference emitter from level blueprint](https://forums.unrealengine.com/t/reference-emitter-from-level-blueprint/422074)

<div class="topic-metadata">

**Author:** [@MrBigzer](https://forums.unrealengine.com/u/MrBigzer)\
**Replies:** 1\
**Last updated:** [April 8, 2018, 8:09am UTC](https://forums.unrealengine.com/t/reference-emitter-from-level-blueprint/422074 "2018-04-08T08:09:07Z")

</div>

I’m trying to change the spawn rate of an emitter from the level blueprint but how do I do that? I set the spawn rate distribution of the emitter to “Distribution Float Particle Parameter” and then edit it from the leve…

---

## [A zelda like Inventory System](https://forums.unrealengine.com/t/a-zelda-like-inventory-system/421529)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_375769691](https://forums.unrealengine.com/u/anonymous_user_375769691)\
**Replies:** 2\
**Last updated:** [April 6, 2018, 5:49pm UTC](https://forums.unrealengine.com/t/a-zelda-like-inventory-system/421529 "2018-04-06T17:49:35Z")

</div>

Hello everybody ! I am actively working on a UE4 project. Being a beginner, I do not know how to create my own “stuff”, I still need tutorials. Having nothing to look like, I post here. Did you know how to create an inve…

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

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