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

Allow specification of keys for actors when they are attached to the scene graph #3

Open
michael opened this issue Aug 11, 2010 · 2 comments
Labels

Comments

@michael
Copy link
Owner

michael commented Aug 11, 2010

Eg.:

scene.add('kevin', new uv.Bar({});
scene.get('kevin').add(new uv.Label({text: 'Kevin'));
scene.get('kevin').p('rotation', uv.PI/2);
@michael
Copy link
Owner Author

michael commented Aug 27, 2010

Is working now.

scene.add(new uv.Rect({id: 'kevin'}))

Or use the declarative syntax:

scene.add({type: 'rect', id: 'kevin'})

To be accessed like so:

scene.get('kevin');

@michael
Copy link
Owner Author

michael commented Aug 27, 2010

Leaving ticket open for discussion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant