cocos / cocos-engine

Cocos simplifies game creation and distribution with Cocos Creator, a free, open-source, cross-platform game engine. Empowering millions of developers to create high-performance, engaging 2D/3D games and instant web entertainment.
https://www.cocos.com/en/creator
Other
8.85k stars 2.05k forks source link

How is cc3 cocos creator 3D embedded in Vue or react #10461

Open yjwSurCode opened 2 years ago

yjwSurCode commented 2 years ago

cocos creator2.x can be embedded in Vue or react projects

yjwSurCode commented 2 years ago

no iframe

minggo commented 2 years ago

Any problem to integrate with them?

yjwSurCode commented 2 years ago

![Uploading image.png…]()

Do you have this problem?

yjwSurCode commented 2 years ago

CC. Generated by cocos package How to introduce JS

Any problem to integrate with them?

yjwSurCode commented 2 years ago

Any problem to integrate with them?

cc.js:1 Uncaught (in promise) TypeError: Wn.btDefaultCollisionConfiguration is not a constructor at new e (cc.js:1:823907) at new e (cc.js:1:741365) at cc.js:1:744628 at cc.js:1:744707 at t.emit (ammo-instantiated-07963f79.js:1:125986) at t.n._initOnRendererInitialized (ammo-instantiated-07963f79.js:1:1100076) at t.emit (ammo-instantiated-07963f79.js:1:125968) at t.n._safeEmit (ammo-instantiated-07963f79.js:1:963385) at t.n._setRenderPipeline (ammo-instantiated-07963f79.js:1:963320) at ammo-instantiated-07963f79.js:1:962912

minggo commented 2 years ago

@shrinktofit any idea?

shrinktofit commented 2 years ago

Could you upload your demo code?