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

Accessing components on an entity is cumbersome (too many characters) #6

Open
modeswitch opened this issue Jun 7, 2012 · 1 comment
Labels

Comments

@modeswitch
Copy link

For example, getting a Transform for an entity in a space:

var transform = space.findNamed( "MyEntity" ).findComponent( "Transform" );
@modeswitch
Copy link
Author

A partial solution here might be to expose registered components as properties on the entity. The above then becomes:

var transform = space.findNamed( "MyEntity" ).Transform;

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