Unity2018.4.16f loading from bundle problem

Forums 💬 Slate Sequencer ⚙️ Support Unity2018.4.16f loading from bundle problem

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #20233
    anjekan
    Participant

      Hi Slate!

      Thank you for making great asset. We are very happy using this slate in our game cutscene.

      Recently We upgrade unity to 2018.4.16f. then We have some problem when we make bundle with this slate. Slate goes very well when it load from asset but when it from bundle, ★ Director Camera Root lost its parent then go to scene like screenshot.

      I have no choice with this problem, so I make some Annotation at DirectorCamera like screenshot. then it goes well.. both side. but

      this NullReferenceException: Object reference not set to an instance of an object.. is happened.

      Hopely I get some solution with this asap. Take care and Good luck!

      #20236
      Gavalakis
      Keymaster

        Hello and welcome,

        Thank you! I am glad you like Slate and that you are using it in your project 🙂
        Please do not comment these lines out as they are important to make sure that a DirectorCamera always exists. It would be better if we can solve the initial problem, but I really need to understand more specifically what you mean first 🙂

        What exactly do you mean by saying that “Director Camera Root lost its parent then go to scene” ?

        Does a DirectorCameraRoot instance already exists when loading the asset bundle (under DontDestroyOnLoad scene) ?

        Can you please provide a bit more information?

        Thank you in advance.

        #20235
        anjekan
        Participant

          Thank you for the answer. Our problem is as follows.

          ★ Director Camera Root is a child in a prefab that was originally created as a cutscene(script). However, if I create a cutscene prefab with Instantiate, ★ the Director Camera Root automatically disappears from the cutscene and goes to a node in the scene.

          But Only occurs when loading from a bundle. so I have no choice comment that code out and now I add more code at DirectorCamera.cs : Check null at public static Camera renderCamera

          It looks have no problems, but I’m not sure about this. I’m worried about the explanation with English.

          Take care and Good luck.

          #20234
          Gavalakis
          Keymaster

            Hello again,

            Do you really need the Director Camera Root to be part of the cutscene prefab? I would suggest to maybe leave the Director Camera Root outside the cutscene prefab itself and only instantiate it separately. Have you tried that?

            Thanks.

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