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

Use Pixi Geometry in PixiComponent #96

Closed
kresli opened this issue Mar 15, 2019 · 1 comment
Closed

Use Pixi Geometry in PixiComponent #96

kresli opened this issue Mar 15, 2019 · 1 comment

Comments

@kresli
Copy link

kresli commented Mar 15, 2019

Is it possible to feed PixiComponent with other then Graphics type?

image

Additional info

  • @inlet/react-pixi version: "^0.5.5"
  • React version: "^16.8.2"
  • ReactDOM version: "^16.6.1"
  • PIXI version: "^5.0.0-rc.2"
@inlet
Copy link
Collaborator

inlet commented Mar 15, 2019

Yes you can return anything as long it is a PIXI.DisplayObject.

A PIXI.RoundedRectangle is a shape, this cannot be added directly to a parent container.

@inlet inlet closed this as completed Mar 15, 2019
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

2 participants