반응형
  1. #1
    0
    Samaritan
    Join Date
    Jul 2014
    Posts
    130

    Question BeginPlay VS Constructor?

    I have been trying to spawn a certain object when the game starts and have been using constructor to do so, but nothing is happening. DebugMessages I surrounded it with are neither firing. Is there some crucial difference between BeginPlay and contructor?
    Quick reply to this messageReply   Reply With QuoteReply With Quote   Multi-Quote This Message     
  2. #2
    0
    Champion
    Join Date
    Mar 2014
    Posts
    627
    This is due to that when the constructor is called the Actor or world is potentaly not loaded.
    You can use BeginPlay if the actor is placed in the world, or PostInitelize methods to do this.






https://forums.unrealengine.com/showthread.php?27461-BeginPlay-VS-Constructor

반응형

+ Recent posts