Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

SceneReference Constructor #7

Open
fpdotmonkey opened this issue Nov 9, 2020 · 1 comment
Open

SceneReference Constructor #7

fpdotmonkey opened this issue Nov 9, 2020 · 1 comment
Labels
question Further information is requested

Comments

@fpdotmonkey
Copy link

It'd be nice for test automation to have a constructor that took a path to a scene. Something like this.

void TestSceneThing()
{
    SceneReference scene = new SceneReference("/Assets/Scenes/TestScenes/test_scene_1.unity");
    bool weDidStuffToTheScene = thing.DoStuffTo(scene);
    Assert.That(weDidStuffToTheScene, Is.True);
}
@starikcetin
Copy link
Collaborator

The SceneReference class is designed to be constructed only in the context of the inspector, therefore I see no benefit of having a meaningful constructor to be used either in runtime or in tests.

Can you elaborate more on what you are trying to test here?

@starikcetin starikcetin added the question Further information is requested label Dec 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants