Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An exception occurs when getAttribute() from an unmounted node #494

Open
moajo opened this issue Jun 16, 2017 · 0 comments
Open

An exception occurs when getAttribute() from an unmounted node #494

moajo opened this issue Jun 16, 2017 · 0 comments

Comments

@moajo
Copy link
Contributor

moajo commented Jun 16, 2017

when call getAttribute method of unmounted node, following error occurs,

grimoire.js:5143 Uncaught Error: attribute position value is undefined in mesh
    at Attribute.get (grimoire.js:5143)
    at AttributeManager.getAttribute (grimoire.js:6752)
    at GomlNode.getAttribute (grimoire.js:3209)
    at <anonymous>:1:3

This is due to the fact that resolution of initial values of component attributes is performed in awake message.
I think this specification is not very good.

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

No branches or pull requests

1 participant