Hello.
I want to call the Scene transition function of Scene Changer at the end of another script.
Currently, I am thinking of getting a Scene Changer with GetComponent at the end of another script and performing Scene transition processing.
If you want to do this, please tell me how to call the Scene Changer function.
Sincerely
So, this'll start your scene change:
changer.StartEvent(null);
changer is the SceneChanger component.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Is the SceneChanger component an instance of the SceneConnectionSceneChanger class?
Please give me some advice on how to set up an instance to call Start Event.
Sincerely
I implemented changer in the following form.
changer = new ORKFramework.Behaviours.SceneChanger ();
I'm thinking of a way to pass the scene name, Spawn ID, etc. of the destination to this changer.
If the argument is null, the destination scene cannot be specified, so please tell me what to do.
Sincerely
SceneChanger changer = new GameObject().AddComponent<SceneChanger>();
To change the scene name, spawn ID, etc. you can do that on the scene changer's target, e.g.:
changer.target[0].sceneName = "New Scene";
A scene changer can have multiple targets (one is selected randomly), the first one is added automatically on a new scene changer.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
I was able to change the screen using the method you taught me.
Thank you for your reply many times.
Sincerely