x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

BeginPlay() method. What is it?

Can someone explain me waht for is BegnPlay() method. We got constructor so waht for is BeginPlay method? And from which super class is it starting?

Product Version: UE 4.10
Tags:
more ▼

asked Feb 22 '16 at 10:06 AM in C++ Programming

avatar image

Wilq83
23 5 7 9

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

3 answers: sort voted first

BeginPlay is the last step of the actor spawn process, you can read more about the Actor life cycle here: https://docs.unrealengine.com/latest/INT/Programming/UnrealArchitecture/Actors/ActorLifecycle/index.html

more ▼

answered Feb 22 '16 at 10:15 AM

avatar image

lion032
986 31 80 55

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

BeginPlay() is basically when the Actor is up and running and is in play. It's useful for gameplay code as chances are there may be no World object ready in the constructor. It's just part of the wider architecture of UE4.

I don't quite understand what you're asking about Super. It's starts from AActor or UActorComponent.

https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/GameFramework/AActor/BeginPlay/index.html https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/Components/UActorComponent/index.html

more ▼

answered Feb 22 '16 at 10:26 AM

avatar image

Bino
269 9 5 13

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Thank you guys. I totally new about Unreal enviroment. So i am trying to understand everything i can. I got some knowledge about c++ and object programming. Tanks again for effort.

more ▼

answered Feb 22 '16 at 10:56 AM

avatar image

Wilq83
23 5 7 9

avatar image Bino Feb 22 '16 at 11:27 AM

Hang in there. You're in for an unreal ride. :)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question