Local Variables

Chris Didier
Jun 28, 2022

--

We are going to work with locals in a given function. We can set our values then the ones stored in MyVector.

We have been dealing with variables belonging to a class so far.

  • Scope-How long does a variable live?
  • Generally between {}

SetLocalVector from MyVector

Then SetActorLocation from LocalVector

Does Platform move?

Now when we spawn our cube it is a 100 units higher than the transform.

Our starting Z value is 4056.0, but when we add it our local variable on play we get

--

--

Chris Didier
Chris Didier

No responses yet