Hi,
i wanted to use the action 'Get Scene Is Loaded', but it doesn't seem to work.
Whatever i try, it always triggers the SceneNotFound event.
When browsing through the code, i found the following statement in GetSceneActionBase:
if (_scene == new Scene()) {
This always returns true, and when it does it sets _sceneFound to false.
I'm using getSceneByName, but it doesn't find my scene.
When i use getSceneByIndex, it throws out of bounds exception.
I'm sure the both the index and the name are correct and added to build settings.
[edit]
i fixed it by adding
if (_scene.isLoaded)
{
Fsm.Event(isLoadedEvent);
}
else
{
Fsm.Event(isNotLoadedEvent);
}
to GetSceneIsLoaded.cs
this fixes my problem, but i think this needs a bit more refactoring.
the isFound event is not usefull. you only have to know if its loaded. if it isn't found, its not loaded, load it. If it is found, but not loaded -> load it. If its loaded -> continue
same thing goes for isValid and isDirty.