Skip to content

Fixes for Unity 5.6-2018.3#22

Open
jlauha wants to merge 9 commits into
chengkehan:masterfrom
jlauha:master
Open

Fixes for Unity 5.6-2018.3#22
jlauha wants to merge 9 commits into
chengkehan:masterfrom
jlauha:master

Conversation

@jlauha

@jlauha jlauha commented Feb 12, 2019

Copy link
Copy Markdown
  • many warning fixes and Unity-version specific issues.

Fix warnings: use 'new' keyword on fields which hide parent fields.
Unity 2018.3 (or apparently 2017.2+) gives the error message below
if the Init is called directly inside OnValidate():
"SendMessage cannot be called during Awake, CheckConsistency, or OnValidate"

This commit attempts to fix that issue by deferring the Init call until next Update().
(Older than Unity 2017.2 is kept as it was.)
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.

1 participant