Instantiate Actor Dynamically

Slate Forums Support Instantiate Actor Dynamically

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #520
    kamiffchen
    Participant

    How can I instantiate an actor from prefab in a specific key frame?
    I realize that I can instantiate a GameObject by using ‘Instantiate Object’ in director action clips, but I can’t control the gameobject like animate…
    So can I use actor action clips to do something like that?
    You need to know that I have lots of obj among the whole time line, so instantiate all the objs at the beginning is a bag idea.
    Please help!

    #523
    Gavalakis
    Keymaster

    Hello,

    Just so that I can confirm your question, is what you mean that you have created an Actor Group which is empty (null actor object) when the cutscene begins play, and that you would like to instantiate and assign an object to that group while the cutscene is playing and at a specific time point?

    Please let me know if that is indeed the case, or if I have misunderstood your question.

    Thanks.

    Join us on Discord: https://discord.gg/97q2Rjh

    #528
    kamiffchen
    Participant

    you have created an Actor Group which is empty (null actor object) when the cutscene begins play, and that you would like to instantiate and assign an object to that group while the cutscene is playing and at a specific time point?

    Sorry for my poor English.
    Yes, that is exactly I want to do. And I want to destroy the object (or the actor?) at an another time point.
    Can I do this?
    Thanks.

    #533
    Gavalakis
    Keymaster

    Hey,
    No problem. You English is fine 🙂

    So, unfortunately this is currently not possible to do, because when a cutscene begins play, all Actor Groups that have a ‘null’ actor target gameobject, are disabled on purpose so that there are no errors thrown and so that the cutscene plays even though some actors are missing.
    So, assigning a gameobject as the actor of a Group while the cutscene is already playing will not have any effect right now since the Group becomes disabled on start if it’s actor gameobject is null.

    Thus, I will have to make some core changes before this is possible. When this is done, I will also add an option in the “Instantiate GameObject” action clip to optionally assign the instance to an Actor Group. I will work on this update as soon as possible.
    Would this work for you?

    Thanks!

    Join us on Discord: https://discord.gg/97q2Rjh

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.