-
-
Notifications
You must be signed in to change notification settings - Fork 411
Migration Guide
ChenMo edited this page Apr 21, 2023
·
34 revisions
-
The Oasis brand name has been changed to Galacean, and the corresponding
npmpackage has also been changed fromoasis-engineto@galacean/engine. Upgrade steps:- Change
npmpackage fromoasis-engineto@galacean/engine - Adjust all imports to
@galacean/engine, for example:import { Entity } from "@galacean/engine;"
- Change
-
InputManagersupport get multipointerdetailed data ability,InputManager.pointerMovingDeltacan useInputManager.pointers[x].deltaPositioninstead,InputManager.pointerPositionuseInputManager.pointers[x].positioninstead https://github.com/ant-galaxy/oasis-engine/pull/1005
- Sprite region origin should adjust from letf-top to left-bottom https://github.com/oasis-engine/engine/pull/809
- Math library
cloneTohas deleted, should usecopyFrominstead https://github.com/oasis-engine/engine/pull/844 - Math library
setValuehas deleted, should usesetinstead https://github.com/oasis-engine/engine/pull/844 -
CameraClearFlagshas been modifiedCameraClearFlags.DepthColor->CameraClearFlags.All,CameraClearFlags.Depth->CameraClearFlags.DepthStencilby @cptbtptpbcptdtptp in https://github.com/oasis-engine/engine/pull/843
- The
physicsparam ofWebGLEngineandEngine's constructor is removed, Please usePhysicsManager.initialize()to set the backend physics engine. - Rename TextureCubeMap to TextureMap.
-
RenderColorTextureandRenderDepthTextureare removed, thecolorTexturesanddepthTextureof theRenderTargetneed to adjust fromRenderColorTextureandRenderDepthTexturetoTexture.