You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@273032860 For react, it is probably worth to use just Button, not ButtonContainer. I am not familiar with react good enough but when we was preparing PixiUI to be integrated into https://github.com/pixijs/pixi-react we was discussing that container instance should be given to a component by react after the instance of the component itself is created. ButtonContainer is just a helper. Button should probably work as you expect. Otherwise you may go and check how is it integrated in https://github.com/pixijs/pixi-react
pixi/ui add react
export const Pixitest = () => {
const blurFilter = useMemo(() => new BlurFilter(4), [])
const ref = useRef()
useEffect(() => {
const button = new ButtonContainer()
}, [])
return (
<Sprite
image="https://pixijs.io/pixi-react/img/bunny.png"
x={400}
y={270}
anchor={{ x: 0.5, y: 0.5 }}
/>
)
}
Cannot render correctly
The text was updated successfully, but these errors were encountered: