custom sequencer command access to scene elements
Posted: Fri Dec 22, 2023 3:07 pm
Hi
I'm trying to do a custom sequencer command. The Youtube video tutorial explains the basics and it seems very straightforward, and I managed to get the thing mostly working. But I can't figure out how to connect to scene elements. I mean, Let's say I have an object of type door which inside has a OpenDoor() method. Normally I would
but my question is, how do I assign the door at the end of the level to this? Using the editor, I would drag and drop said object to the script Door field. But how do I do that with a custom sequencer command?
And also, how do I do this for a scriptable object that is not in the scene?
Thanks.
I'm trying to do a custom sequencer command. The Youtube video tutorial explains the basics and it seems very straightforward, and I managed to get the thing mostly working. But I can't figure out how to connect to scene elements. I mean, Let's say I have an object of type door which inside has a OpenDoor() method. Normally I would
Code: Select all
public Door door;
...
door.OpenDoor();
And also, how do I do this for a scriptable object that is not in the scene?
Thanks.