How can I save a cutscene?

Slate Forums Support How can I save a cutscene?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #999
    russiac
    Participant

    hello.
    Sorry for the misunderstanding of English.

    I’m currently using slate to create a great presentation, but I can prefab it
    I do not know how.

    Is there a way to save or load cutscene information into slate?
    If not, how can you save and load cutscene information?
    Is there a universal way?

    Can you give me a simple example of this?

    Our goal is to prefab (or serialize) the cutscene to make it an asset bundle
    I want to load the cutscene when I need it and show it in the game.

    Thank you.

    #1000
    russiac
    Participant

    I have additional questions.
    I got the latest slate (version 1.65) from the asset store
    VERSION_NUMBER in your CutScene.cs file is 1.60f.
    How do I get version 1.65?

    #1001
    Gavalakis
    Keymaster

    Hello,

    You can make the Cutscene gameobject a prefab and instantiate it as you would normally do with any gameobject. You can do this for example, simply by drag and dropping the cutscene gameobject from your scene and into some subfolder in your Assets root folder of the “Project” window.
    When you need the cutscene to be played, it should be instantiated as any prefab does, with the “Instantiate” function and then call “Play()” on the instantiated cutscene.

    Also, please keep in mind that if the cutscene is using gameobject actor references from the scene, Unity is not able to store these scene object references into assets (prefabs are assets as well), meaning that connection to those actor gameobjects will be lost. This is unfortunately a common Unity pitfall.
    There are 3 different ways to work around this though, Either:
    -1) After instantiating the cutscene, use the function cutscene.SetGroupActorOfName(string name, GameObject newActor) from code, to assign the target actors to the cutscene for each required “Actor Group”. Or,
    -2) Have all necessary actor gameobjects, child of the Cutscene gameobject and part of the same prefab. In this way references are not lost.

    Please let me know if these work for you.

    Regarding the update and version number, if you updated from the asset store the VERSION_NUMBER should be 1.65f, but maybe something went wrong with the Unity package importer. In this case, I suggest that you delete the whole “ParadoxNotion/Slate Cinematic Sequencer” folder and re-import the package from the asset store anew, just so to make sure everything updates correctly.
    Of course, please make a backup of your project before doing this.

    Thanks.

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

    #1004
    russiac
    Participant

    It has helped a lot.
    Thank you.

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