+2
Planned

local variable owner

eagleeyez 8 months ago in Game Creator updated 8 months ago 2

If I have local variables on a GameObject and wish to access this on the same object I always have to drag that same GameObject into the field, but if I had all local variables on Player I can just select that.

So why not also have in this drop down a selection use Owner? then I would not have to drag the owner to the GameObject field as it is already a member of that Object. 

It would save time and dragging when the local variables are already on the same GameObject. 

Unity version:
2019.3.0f3
Game Creator version:
1.1.3

Answer

Answer
Planned

This is an interesting question and one that's being addressed in Game Creator 2.0. The thing is that the list where it shows a collection of options (Game Object, Local Variable, Global Variable and List Variable) is fixed and can't be altered. This is shared across different objects, whom may not be able to reference a "Owner" or "Self" object.

We are changing the entire architecture of the Actions for the next major release to support his out of the box

Answer
Planned

This is an interesting question and one that's being addressed in Game Creator 2.0. The thing is that the list where it shows a collection of options (Game Object, Local Variable, Global Variable and List Variable) is fixed and can't be altered. This is shared across different objects, whom may not be able to reference a "Owner" or "Self" object.

We are changing the entire architecture of the Actions for the next major release to support his out of the box

Ok, I must admit having to drag the local Variable GameObject every time to the field is really, really annoying me. 

So if I just set all my variables in the Global Variables would that make the game slower or cost more resources. 

At least I do not have to drag to reach a variable.

Then I would not use Local Variables at all. And look forward to GC 2.0

And btw. when local variables are on the Player, selecting the drop down in set variables Player does not show the variables. I thought that used to work. In global it does however show.