Skip to content

Replace OnSceneWasLoaded with sceneLoaded delegate#4

Open
rhysp wants to merge 1 commit into
mattvr:masterfrom
rhysp:master
Open

Replace OnSceneWasLoaded with sceneLoaded delegate#4
rhysp wants to merge 1 commit into
mattvr:masterfrom
rhysp:master

Conversation

@rhysp

@rhysp rhysp commented Sep 5, 2016

Copy link
Copy Markdown

Issue #3
Unfortunately I'm unsure how to open the standalone Scene.unity file (to recompile Syrinj.unitypackage and also ensure tests are still passing. Happy to review with any insight.

@rhysp rhysp changed the title #3: Replace OnSceneWasLoaded with sceneLoaded delegate Replace OnSceneWasLoaded with sceneLoaded delegate Sep 5, 2016

@mattvr mattvr left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SceneManager.sceneLoaded should be unsubscribed from when the script is destroyed (ie OnDestroy()).

This will also require you using a named method instead of an anonymous method.

@mattvr

mattvr commented Feb 4, 2018

Copy link
Copy Markdown
Owner

Thanks for the contribution @rhysp! I've stopped working on it myself but will approve pull requests if they're tested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants