# Editor Scripting

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

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

**Page:** 78

---

## [Set object reference during or after spawning class](https://forums.unrealengine.com/t/set-object-reference-during-or-after-spawning-class/410717)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_8e28bd7f](https://forums.unrealengine.com/u/anonymous_user_8e28bd7f)\
**Replies:** 5\
**Last updated:** [December 12, 2017, 12:16pm UTC](https://forums.unrealengine.com/t/set-object-reference-during-or-after-spawning-class/410717 "2017-12-12T12:16:01Z")

</div>

My blueprint class is an Actor with two custom components : A and B. It is for testing purposes. A contains a reference called “BOwner” to the Owner to whoever contains component B (In this case it is the same Actor, bu…

---

## [What variable to use with Map Name/ Level name?](https://forums.unrealengine.com/t/what-variable-to-use-with-map-name-level-name/411940)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_451ef1c5](https://forums.unrealengine.com/u/anonymous_user_451ef1c5)\
**Replies:** 3\
**Last updated:** [December 12, 2017, 10:46am UTC](https://forums.unrealengine.com/t/what-variable-to-use-with-map-name-level-name/411940 "2017-12-12T10:46:30Z")

</div>

Does any one know what variable these noob should use to save Map Name( Level Name (LV1, LV2, LV3 ETC…) For instance for Player location I would obiviously use Player Location node for Velocity I would Player Velocity no…

---

## [Errors in my inventory system](https://forums.unrealengine.com/t/errors-in-my-inventory-system/411824)

<div class="topic-metadata">

**Author:** [@sattiyawn](https://forums.unrealengine.com/u/sattiyawn)\
**Replies:** 3\
**Last updated:** [December 11, 2017, 9:51am UTC](https://forums.unrealengine.com/t/errors-in-my-inventory-system/411824 "2017-12-11T09:51:17Z")

</div>

Hi, im currently doing inventory and equipment system for my rpg game. The problem im having right now is, when i click my item in my inventory, it could not be equipped in equipment system. Im following titanic games’ r…

---

## [I need Help with my Inventory setup!!!](https://forums.unrealengine.com/t/i-need-help-with-my-inventory-setup/411935)

<div class="topic-metadata">

**Author:** [@JonathanTewnes](https://forums.unrealengine.com/u/JonathanTewnes)\
**Replies:** 0\
**Last updated:** [December 11, 2017, 5:04am UTC](https://forums.unrealengine.com/t/i-need-help-with-my-inventory-setup/411935 "2017-12-11T05:04:29Z")

</div>

I have watch hours and hours of tutorials on Inventories… and just when I think I have it understood I find something that doesn’t work… I’ve tried the Titanic games tutorials / Mark Sees helped me with the stackable por…

---

## [If I have a single actor in my level with a variable stored within it, how do I retrieve the variable efficiently?](https://forums.unrealengine.com/t/if-i-have-a-single-actor-in-my-level-with-a-variable-stored-within-it-how-do-i-retrieve-the-variable-efficiently/411690)

<div class="topic-metadata">

**Author:** [@Generica](https://forums.unrealengine.com/u/Generica)\
**Replies:** 2\
**Last updated:** [December 9, 2017, 10:55am UTC](https://forums.unrealengine.com/t/if-i-have-a-single-actor-in-my-level-with-a-variable-stored-within-it-how-do-i-retrieve-the-variable-efficiently/411690 "2017-12-09T10:55:47Z")

</div>

Hi. Currently Im using “Get all actors of class” every tick, and the node says to use it with caution since it is resource intensive. What is the way to go to get a value from my Tracker actor?

---

## [exported Particle system tries to reference graphs of original system](https://forums.unrealengine.com/t/exported-particle-system-tries-to-reference-graphs-of-original-system/411273)

<div class="topic-metadata">

**Author:** [@Luos](https://forums.unrealengine.com/u/Luos)\
**Replies:** 5\
**Last updated:** [December 8, 2017, 6:39pm UTC](https://forums.unrealengine.com/t/exported-particle-system-tries-to-reference-graphs-of-original-system/411273 "2017-12-08T18:39:07Z")

</div>

at least 4.16 but initially I found it in 4.18, couldn’t reproduce it until now in a 4.16 project. Well, perhaps reproduce isnt the right word but I stumbled upon the problem again and managed to find the emitter causin…

---

## [SaveData: Struct Merge](https://forums.unrealengine.com/t/savedata-struct-merge/411572)

<div class="topic-metadata">

**Author:** [@SmashRash](https://forums.unrealengine.com/u/SmashRash)\
**Replies:** 4\
**Last updated:** [December 8, 2017, 1:41pm UTC](https://forums.unrealengine.com/t/savedata-struct-merge/411572 "2017-12-08T13:41:21Z")

</div>

I am fiddling with save game data. I developed some working logic, which is great. I’ve since refactored and updated my logic to instead of determine everything to save at once, to save data into indexes upon changes, …

---

## [Custom SaveGame mechanism](https://forums.unrealengine.com/t/custom-savegame-mechanism/411612)

<div class="topic-metadata">

**Author:** [@BobbyMcBob133](https://forums.unrealengine.com/u/BobbyMcBob133)\
**Replies:** 0\
**Last updated:** [December 7, 2017, 7:29am UTC](https://forums.unrealengine.com/t/custom-savegame-mechanism/411612 "2017-12-07T07:29:27Z")

</div>

Hi. I’m trying to implement my own SaveGame mechanism by building on the existing one. Basically, what I’m trying to achieve is to be able to store saved game data in a database, rather than in the files, as it seems t…

---

## [get current Variable Value](https://forums.unrealengine.com/t/get-current-variable-value/411205)

<div class="topic-metadata">

**Author:** [@Ingmar\_Brauns](https://forums.unrealengine.com/u/Ingmar_Brauns)\
**Replies:** 3\
**Last updated:** [December 5, 2017, 6:36pm UTC](https://forums.unrealengine.com/t/get-current-variable-value/411205 "2017-12-05T18:36:00Z")

</div>

Dear Develpers There is a way to get the current value of a variable, how, i dont know ?. but you certainly do. By pressing up, 1 is added to the current value by pressing the (P) the value = 0 but by pressing (P) ag…

---

## [Have an Array Check for mutiple types.](https://forums.unrealengine.com/t/have-an-array-check-for-mutiple-types/410936)

<div class="topic-metadata">

**Author:** [@Koaku](https://forums.unrealengine.com/u/Koaku)\
**Replies:** 0\
**Last updated:** [November 30, 2017, 1:41am UTC](https://forums.unrealengine.com/t/have-an-array-check-for-mutiple-types/410936 "2017-11-30T01:41:23Z")

</div>

Hi so basically say I have 4 items built of beads (A), there are 8 types of individual beads (B). I want to check this array for any if any of the 4 items i added in an amount have the same bead. So if item 2 and 4 cont…

---

## [Problem with a variable](https://forums.unrealengine.com/t/problem-with-a-variable/410923)

<div class="topic-metadata">

**Author:** [@MartyBro](https://forums.unrealengine.com/u/MartyBro)\
**Replies:** 4\
**Last updated:** [November 29, 2017, 11:48pm UTC](https://forums.unrealengine.com/t/problem-with-a-variable/410923 "2017-11-29T23:48:41Z")

</div>

I have declared a variable in my .h file like this: char c; This should, in my mind, declare a variable called c as a character. I have then used it like this in my .cpp file: c = tolower(getchar()); if (c = “w”){mov…

---

## [C++ property is missing from blueprint if project is launched from Launcher](https://forums.unrealengine.com/t/c-property-is-missing-from-blueprint-if-project-is-launched-from-launcher/407140)

<div class="topic-metadata">

**Author:** [@AlekseyIlin](https://forums.unrealengine.com/u/AlekseyIlin)\
**Replies:** 1\
**Last updated:** [November 29, 2017, 9:10am UTC](https://forums.unrealengine.com/t/c-property-is-missing-from-blueprint-if-project-is-launched-from-launcher/407140 "2017-11-29T09:10:25Z")

</div>

.h USTRUCT(BlueprintType) struct FTestData { GENERATED\_BODY() UPROPERTY(EditAnywhere, BlueprintReadWrite) float TestValue; }; UCLASS() class FIXIKIVR\_API ATestGameModeBase : public AGameModeBase { GENERATED\_BODY(…

---

## [Level streaming and Loading/saving game](https://forums.unrealengine.com/t/level-streaming-and-loading-saving-game/349833)

<div class="topic-metadata">

**Author:** [@C0dR](https://forums.unrealengine.com/u/C0dR)\
**Replies:** 1\
**Last updated:** [November 29, 2017, 4:31am UTC](https://forums.unrealengine.com/t/level-streaming-and-loading-saving-game/349833 "2017-11-29T04:31:54Z")

</div>

Hello, we are currently creating a game with multiple (more or less) closed rooms. Since the player is only in one room and need to get a key to open a door to the next room we tought about streaming levels to improve p…

---

## [Get Variable from other BP Class](https://forums.unrealengine.com/t/get-variable-from-other-bp-class/410751)

<div class="topic-metadata">

**Author:** [@Cervelx](https://forums.unrealengine.com/u/Cervelx)\
**Replies:** 3\
**Last updated:** [November 28, 2017, 6:41pm UTC](https://forums.unrealengine.com/t/get-variable-from-other-bp-class/410751 "2017-11-28T18:41:13Z")

</div>

Hi guys ! I have this issue, i want to get a variable from other BP Class, so i use the “cast to”, but i have this problem when i compile, what i’m doing wrong ?Thank you :slight\_smile:

---

## [how to create Instance ?](https://forums.unrealengine.com/t/how-to-create-instance/410478)

<div class="topic-metadata">

**Author:** [@Anes08](https://forums.unrealengine.com/u/Anes08)\
**Replies:** 5\
**Last updated:** [November 28, 2017, 3:44pm UTC](https://forums.unrealengine.com/t/how-to-create-instance/410478 "2017-11-28T15:44:00Z")

</div>

Hello there , in this tutorial of saving game the only thing i couldn’t make is create instance , or copy of SaveGame object https://docs.unrealengine.com/latest/INT/Gameplay/SaveGame/Blueprints/ If any one can teach m…

---

## [Cannot drag a variable out in FirstPersonCharacter BP.](https://forums.unrealengine.com/t/cannot-drag-a-variable-out-in-firstpersoncharacter-bp/410419)

<div class="topic-metadata">

**Author:** [@Overwatch04](https://forums.unrealengine.com/u/Overwatch04)\
**Replies:** 3\
**Last updated:** [November 28, 2017, 2:21pm UTC](https://forums.unrealengine.com/t/cannot-drag-a-variable-out-in-firstpersoncharacter-bp/410419 "2017-11-28T14:21:08Z")

</div>

I can no longer drag out any variables out of the variable list in my FirstPersonCharacter blueprint nor can I create a variable by clicking the + button. I remember I used to be able to do this but recently noticed I co…

---

## [Problems saving map.](https://forums.unrealengine.com/t/problems-saving-map/410519)

<div class="topic-metadata">

**Author:** [@Foxkalf](https://forums.unrealengine.com/u/Foxkalf)\
**Replies:** 0\
**Last updated:** [November 27, 2017, 2:03pm UTC](https://forums.unrealengine.com/t/problems-saving-map/410519 "2017-11-27T14:03:51Z")

</div>

just downloaded the new unreal engine, spent several hours making a first person map, saved several times, and restarted to find that the map was replaced with the test map. kinda real ■■■■■■ the save did not work at all…

---

## [Problem With Struct Not Saving Information](https://forums.unrealengine.com/t/problem-with-struct-not-saving-information/410167)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_59ac8b95](https://forums.unrealengine.com/u/anonymous_user_59ac8b95)\
**Replies:** 5\
**Last updated:** [November 23, 2017, 8:50am UTC](https://forums.unrealengine.com/t/problem-with-struct-not-saving-information/410167 "2017-11-23T08:50:05Z")

</div>

Thanks for reading. Currently I am making a project that which I would like to use Structs to save an array of information such as the Players and settings. At the moment I am able to product the results I would like w…

---

## [Using Python to manipulate in-game objects](https://forums.unrealengine.com/t/using-python-to-manipulate-in-game-objects/410203)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_94a70344](https://forums.unrealengine.com/u/anonymous_user_94a70344)\
**Replies:** 0\
**Last updated:** [November 21, 2017, 12:20pm UTC](https://forums.unrealengine.com/t/using-python-to-manipulate-in-game-objects/410203 "2017-11-21T12:20:11Z")

</div>

Hello folks, I intend to use the python language to manipulate objects in the game. For example, the player opens a python terminal during the game and can use methods like, moveForward (), turnLeft (), turnRight () to c…

---

## [How to remove item from game after looting, but keep a copy of it in your inventory array? C++](https://forums.unrealengine.com/t/how-to-remove-item-from-game-after-looting-but-keep-a-copy-of-it-in-your-inventory-array-c/410048)

<div class="topic-metadata">

**Author:** [@IanVL](https://forums.unrealengine.com/u/IanVL)\
**Replies:** 1\
**Last updated:** [November 20, 2017, 5:52pm UTC](https://forums.unrealengine.com/t/how-to-remove-item-from-game-after-looting-but-keep-a-copy-of-it-in-your-inventory-array-c/410048 "2017-11-20T17:52:24Z")

</div>

Hello, I’m trying to loot an Item from the world, add it to the inventory array of item pointers… All is good it replicates I can spawn them and loot them and they keep replicating. If I however call LootedItem-\>Destro…

---

## [Blueprint variables are reset when recompiling c++ code](https://forums.unrealengine.com/t/blueprint-variables-are-reset-when-recompiling-c-code/410024)

<div class="topic-metadata">

**Author:** [@tagoth](https://forums.unrealengine.com/u/tagoth)\
**Replies:** 0\
**Last updated:** [November 19, 2017, 2:51pm UTC](https://forums.unrealengine.com/t/blueprint-variables-are-reset-when-recompiling-c-code/410024 "2017-11-19T14:51:26Z")

</div>

I have a c++ blueprint with some variables defined like this. UPROPERTY(EditAnywhere, BlueprintReadWrite, Meta = (MakeEditWidget = true)) TArray\<FTransform\> fooTransforms; I have been creating a couple of blueprint ass…

---

## [Random integer in range is skewing variable value](https://forums.unrealengine.com/t/random-integer-in-range-is-skewing-variable-value/409203)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_dd537c6e](https://forums.unrealengine.com/u/anonymous_user_dd537c6e)\
**Replies:** 2\
**Last updated:** [November 16, 2017, 8:10pm UTC](https://forums.unrealengine.com/t/random-integer-in-range-is-skewing-variable-value/409203 "2017-11-16T20:10:47Z")

</div>

Couldn’t figure out was wrong until I realized my integer variables were storing the wrong values. Example: X=0 W=100 Rnd=55 W1 = X + Rnd W1 = 56? should be 55 W2 = W - Rnd W2 = 48? should be 45 What is this? I …

---

## [Saving destroyed objects over multiple levels](https://forums.unrealengine.com/t/saving-destroyed-objects-over-multiple-levels/392670)

<div class="topic-metadata">

**Author:** [@JamesWolfwood](https://forums.unrealengine.com/u/JamesWolfwood)\
**Replies:** 10\
**Last updated:** [November 14, 2017, 10:42pm UTC](https://forums.unrealengine.com/t/saving-destroyed-objects-over-multiple-levels/392670 "2017-11-14T22:42:39Z")

</div>

Hi All, I’m having an issue with saving destroyed objects across different levels, now i followed all the information from this question: https://answers.unrealengine.com/questions/259937/save-actors-destroyedpicked-sta…

---

## [Dynamic preview icons](https://forums.unrealengine.com/t/dynamic-preview-icons/409456)

<div class="topic-metadata">

**Author:** [@AquaRex](https://forums.unrealengine.com/u/AquaRex)\
**Replies:** 2\
**Last updated:** [November 14, 2017, 10:40am UTC](https://forums.unrealengine.com/t/dynamic-preview-icons/409456 "2017-11-14T10:40:34Z")

</div>

Hi! Im working on a project that requires an inventory system with a large number of icons. These are icons of models that can be taken out of the inventory when clicked. Is it possible to create this dynamically inste…

---

## [Arrays: (performance) remove Index vs remove Item](https://forums.unrealengine.com/t/arrays-performance-remove-index-vs-remove-item/397839)

<div class="topic-metadata">

**Author:** [@Arty-McLabin](https://forums.unrealengine.com/u/Arty-McLabin)\
**Replies:** 1\
**Last updated:** [November 10, 2017, 10:00pm UTC](https://forums.unrealengine.com/t/arrays-performance-remove-index-vs-remove-item/397839 "2017-11-10T22:00:29Z")

</div>

Hey, which is preferable to use by performance over the other? It seems like “by index” should be faster, but let’s make sure just for the sake of perfection. Thank you.

---

## [Struct Will Only Set One Type of Variable from SaveGame, Based on Replication Setting](https://forums.unrealengine.com/t/struct-will-only-set-one-type-of-variable-from-savegame-based-on-replication-setting/409012)

<div class="topic-metadata">

**Author:** [@DjangoDurango](https://forums.unrealengine.com/u/DjangoDurango)\
**Replies:** 0\
**Last updated:** [November 8, 2017, 12:54am UTC](https://forums.unrealengine.com/t/struct-will-only-set-one-type-of-variable-from-savegame-based-on-replication-setting/409012 "2017-11-08T00:54:39Z")

</div>

So I have my GameMode’s post login event calling an event in my Player Controller, InitialSetup. This event, which is set to replicate to owning client, calls a function, LoadSettings, that takes settings (the user’s …

---

## [Inventory System and Item Pick Up (Blueprint)](https://forums.unrealengine.com/t/inventory-system-and-item-pick-up-blueprint/408939)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_a4244e7f](https://forums.unrealengine.com/u/anonymous_user_a4244e7f)\
**Replies:** 1\
**Last updated:** [November 7, 2017, 6:48pm UTC](https://forums.unrealengine.com/t/inventory-system-and-item-pick-up-blueprint/408939 "2017-11-07T18:48:47Z")

</div>

So i am developing a survival horror game and wheb the player find items i want them to press E to pick up the item and it goes into their inventory. I also want to create backbacks to extend the inventory. Could someone…

---

## [API Reference of TOptional is confused at \`Math\` and \`Misc\`](https://forums.unrealengine.com/t/api-reference-of-toptional-is-confused-at-math-and-misc/408738)

<div class="topic-metadata">

**Author:** [@usagi-wrp](https://forums.unrealengine.com/u/usagi-wrp)\
**Replies:** 2\
**Last updated:** [November 6, 2017, 11:18pm UTC](https://forums.unrealengine.com/t/api-reference-of-toptional-is-confused-at-math-and-misc/408738 "2017-11-06T23:18:39Z")

</div>

This is a report of documentation bug. TOptional is defined in Runtime/Core/Public/Misc/Optional.h in a source code. But, the documentation of API Reference is not found in the correct URL such as Runtime/Core/Misc/TOp…

---

## [The "Header" section is wrong at the API Reference of TMap](https://forums.unrealengine.com/t/the-header-section-is-wrong-at-the-api-reference-of-tmap/408784)

<div class="topic-metadata">

**Author:** [@usagi-wrp](https://forums.unrealengine.com/u/usagi-wrp)\
**Replies:** 2\
**Last updated:** [November 6, 2017, 11:18pm UTC](https://forums.unrealengine.com/t/the-header-section-is-wrong-at-the-api-reference-of-tmap/408784 "2017-11-06T23:18:09Z")

</div>

TMap API Reference: TMap | Unreal Engine Documentation “Header” section Current: Runtime/Core/Private/Internationalization/TextFormatArgumentModifier.h Expected: Runtime/Core/Public/Containers/Map.h

---

## [USTRUCT referencing problem](https://forums.unrealengine.com/t/ustruct-referencing-problem/408519)

<div class="topic-metadata">

**Author:** [@Crispy\_Penguin](https://forums.unrealengine.com/u/Crispy_Penguin)\
**Replies:** 5\
**Last updated:** [November 2, 2017, 10:01am UTC](https://forums.unrealengine.com/t/ustruct-referencing-problem/408519 "2017-11-02T10:01:04Z")

</div>

Here are some cheap karma points for taking. I am converting a prototype from blueprint to C++ where I get into situation, where my USTRUCT S is holding reference to class A, but my class A has to have array of structs …

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

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