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!
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) ?
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.
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.
Join us on Discord: https://discord.gg/97q2Rjh
Author
Posts
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.
Login
Register
By registering on this website you agree to our Privacy Policy.