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

Add API for manipulating the SceneGraph #5

Open
michael opened this issue Aug 11, 2010 · 1 comment
Open

Add API for manipulating the SceneGraph #5

michael opened this issue Aug 11, 2010 · 1 comment
Labels

Comments

@michael
Copy link
Owner

michael commented Aug 11, 2010

E.g.

// Remove a specific node
scene.remove('frank');

// Remove all actors with an x-value greater than 10
scene.remove(function(a) {return a.properties.x > 10); });

// Replace a certain actor with another one
scene.replace('frank', new uv.Label({text: 'John'});
@michael
Copy link
Owner Author

michael commented Aug 27, 2010

With the latest commit I've added Actor#remove to remove child nodes either by id, or using a matcher function.

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