Skip to content

add inspector canvas, script component, asset bundle

Latest
Compare
Choose a tag to compare
@yyc-git yyc-git released this 02 Jun 01:12
· 4 commits to master since this release

add

  • add inspector canvas

can preview material,wdb asset in inspector canvas

  • add script component

    • add script event function
    • add script attribute
  • add asset bundle

  • add progress bar

  • add New Scene

Bug Fixes

  • asset: fix "remove folder asset": should remove folder's all children (79e3d37)
  • asset: fix "remove material asset":1.remove instead of dispose material->maps; 2.if material has no gameObjects, dispose material; (d81994f)
  • asset: fix remove texture asset: if texture has no materials, should dispose texture's engine data (c711c20)
  • asset: fix rename asset in inspector: if value not change, shouldn't warn (22eeb02)
  • asset: script attribute: sort entries show order; add check script event function/attribute jsObj str; (5185889)
  • console: fix "str.split error" bug: fix ConsoleBaseComponent->buildMultiLineStringComponent (272a8ba)
  • event: fix FloatInput,IntInput->drag over in pointer lock->movement (a085859)
  • event: fix init event job->chrome bug for getMovementDeltaWhenPointerLocked (d60b64f)
  • event: fix init event job->chrome bug for getMovementDeltaWhenPointerLocked: use skip(2) instead of skip(1) (6eb7a9d)
  • imgCanvas: fix bug: remove texture should redraw material snapshot and remove container gameObj (a51373c)
  • imgCanvas: use drawImage func instead of Js.object.type (4c94f56)
  • inspectorCanvas: fix texture cache: if change texture asset,clear its cache (c93df9f)
  • inspectorEngine: fix bug caused by 192843c (db62c89)
  • inspectorEngine: fix bug: stateData no state (8ea3542)
  • inspectorEngine: need fix bug (192843c)
  • publish: index.html: use contentLength instead of totalByteLength (201e5da)
  • resize: fix bug: enter editor; show material inspector; resize to big window; show blank area; (9995f8b)
  • ui: mouse over FloatInput/IntInput->drag zone should show move cursor (b0c4b57)
  • wdb: need jack fix bug (974710e)

Features

  • abUI: finish all asset bundle ui (2c24176)
  • ambientLight: add ambient light in inspector canvas (3c00512)
  • asset: add "remove script event function, script attribute asset" (119af1d)
  • asset: add script event function asset; add script attribute asset; (2e0facb)
  • asset: fix rename script attribute asset->attribute name: now update in all script components (fee5180)
  • asset: script attribute asset: add "update script attribute in all script components" logic (32d3785)
  • asset: script event function asset: add "update script event function in all script components" logic (fe76e2e)
  • asset-bundle: add "asset->load assetBundle" logic (51fba9d)
  • asset-bundle: add "generate all ab" draft logic(pass compile) (e3876ab)
  • asset-bundle: add "generate single sab" (5d6a4cf)
  • asset-bundle: add geo.png (ec60c07)
  • asset-bundle: add HeaderAssetBundle->"generate single rab" related ui (150ca0c)
  • asset-bundle: add SelectTree ui draft (63fb0b1)
  • asset-bundle: asset tree->add assetBundle node (f0f289c)
  • asset-bundle: begin "import ab at runtime when run": rewrite script api for asset bundle (594684b)
  • asset-bundle: export/import wpk add asset bundle (6310e5f)
  • asset-bundle: finish "build select tree from asset tree for generate single rab" (75c226b)
  • asset-bundle: finish "generateAndDownloadSingleRAB" logic (c973ebf)
  • asset-bundle: fix generate single rab: added light material shouldn't add to basic material resource data (b149ac7)
  • asset-bundle: fix HeaderAssetBundleGenerateAllAB: change generate-single-sab to generate-all-ab (cf32db3)
  • asset-bundle: fix modal: click close button shouldn't generate single ab (a179227)
  • asset-bundle: header->"generate single rab" add "name" input (2c34074)
  • asset-bundle: publish local: write asset bundle to zip (5e45104)
  • asset-bundle: support load "asset bundle zip" to asset (72b90e6)
  • assetCanvas: finish asset canvas demo (7cf4536)
  • camera: fix scene view->edit camera: fix point scale (bcf22bc)
  • controller: add "exec script event functions when run" logic (a676fef)
  • engine: update wonder.js to 1.0.2 (15da515)
  • engine: update wonder.js to 1.1.0 (dda7c6b)
  • engine: update wonder.js version (50402dd)
  • engine: update wonder.js version (bcf12f1)
  • engine: update wonder.js version (238649c)
  • engine: update wonder.js version (f7e1eab)
  • engine: update wonder.js version (b429bce)
  • engine: update wonder.js, wonder-webgl version (9d41c84)
  • export: export mateial snapshot (10fda6d)
  • header: add "New Scene" (eb5d73a)
  • header: fix "New Scene": should operate in stop (5792121)
  • header: fix "NewScene": should clear current scene tree node before exec update_transform_gizmos job (b65da2f)
  • imgCanvas: create import wdb/gltf file material snapshot (1c75f35)
  • imgCanvas: finish remove material should remove it's imageData from imageDataMap (76c648a)
  • imgCanvas: finish TODOs (98e2bb6)
  • imgCanvas: fix "create material/wdb snapshot": now clear img canvas before draw (245be64)
  • imgCanvas: fix AssetTreeInspectorUtils->disposeContainerGameObjectAllChildrenAndReallocateCPUMemory->_reallocateCPUMemory: add condition judge (90e4a49)
  • imgCanvas: store img-canvas context in editorState (2b71dfc)
  • imgui: fix scene view imgui: if SceneViewIMGUIUtils->convertWorldToScreen return None, return (-100, -100) (a6a1fdd)
  • inspector: finish create material sphere into inspector canvas (8573a77)
  • inspectorCanvas: arcball camera controller->event work (bb505cb)
  • inspectorCanvas: fix "cache texture": load wdb->extract material assets shouldn't dispose texture (48b4db8)
  • inspectorCanvas: fix arcball camera controller: left mouse button can still drag (f236513)
  • inspectorCanvas: fix generate material snapshot: generate snapshot in MaterialInspector->willUnmount (5c166e9)
  • inspectorCanvas: fix MaterialInspector->update snapshot bug (b6d3a64)
  • inspectorCanvas: fix remove material asset: if material is removed, not create material sphere (7fe0f3f)
  • inspectorCanvas: fix:restore arcball camera controller->angle before update snapshot (62c8c40)
  • inspectorCanvas: improve light (b084951)
  • inspectorCanvas: update default material snapshot base64 (c801917)
  • inspectorCanvas: wdb inspector: generate snapshot in WDBInspector->didMount (952ff4c)
  • inspectorCanvas: wDBInspector, MaterialInspector->didMount add tryCatch (6ab8559)
  • inspectorEngine: show sphere and camera (938daed)
  • job: init_pipelines remove init_script job (e9ac408)
  • language: add arcball camera and light language (30126b9)
  • language: add asset and inspector language (14215de)
  • language: add camera group language (ef33b41)
  • language: add message language (7c08bc0)
  • language: change header-edit->zh (6b8efc8)
  • language: finish header and controller language (6053827)
  • language: fix language data (b7fae29)
  • language: restore DomHelper->locationReload to use reload (ce4b198)
  • left-header: fix clone gameObject has script component (814aca0)
  • mainEditorMaterial: split MainEditorBasic/lightMaterial to MainEditorBasic/LightMaterialForGam (6577143)
  • message: change message -> isActive to be immutable (e1860e7)
  • message: finish message demo (58f197c)
  • message: finish message demo (0710f75)
  • message: finish message feature (46ce318)
  • message: finish message feature (51aeea2)
  • progress: add progress willUnmount off event (90ee1d8)
  • progress: finish offCustomGlobalEventByEventName in progress->willUnmount (8a12a22)
  • progress: finish progress feat and style (548fa0c)
  • progress: load wdb, import package add progress (36b9f75)
  • progress: use send local ui state instead of operate dom (7912f99)
  • publish: fix publish local->no worker: fix for asset bundle (78af837)
  • publish: fix publish local->worker: fix for asset bundle (fe1eb33)
  • publish: update engine files (80ab8fe)
  • pwa: finish pwa update data (2825e30)
  • pwa: finish pwa update data (c322bcc)
  • redo-undo: fix redo/undo remove script component (5e8e4fc)
  • redo-undo: script component->attribute add redo/undo (cdb392a)
  • redo-undo: script component->event function add redo/undo (6e58c7c)
  • redo-undo: script event function,script attribute asset add redo-undo (dd482af)
  • script: add "store script assets in asb", "relate script assets when import package", "extract script assets when load asset" logic(draft) (5300181)
  • script: fix event function->body str: replace "return engineState" to return engineState;" (d1fc979)
  • script: fix script component: support Int type (560e7fb)
  • script: rewrite script api->asset bundle api->addSABSceneGameObjectChildrenToScene, setSABSceneGameObjectToBeScene, disposeSceneAllChildren (e2fa8cc)
  • script: script api now update editor (5fb6843)
  • script-component: "add script event function": if no scriptEventFunction asset, warn (bc26270)
  • script-component: add "remove script component" logic (3d06aab)
  • script-component: add "remove script event function" (0cbcaa0)
  • script-component: add "script attribute" logic (afaba0c)
  • script-component: add "script attribute"->fields logic (ad54248)
  • script-component: add script component logic(draft); add "add script event function" logic(draft); (af77d66)
  • script-component: fix "add script event function" bugs (4dbcf39)
  • script-component: HideScriptEventFunctionGroupForAdd,HideScriptEventFunctionGroupForChange now not dispatch (f21fa91)
  • snapshot: add basicMaterial and lightMaterial closeColorPick and blurShininess event handler (d520210)
  • wdb: add imageDataIndex in wdbData (bacfd2a)
  • wdb: add WDBInspector.re and refactor didMount and willunMount (29ddbef)
  • wdb: finish clone wdb gameObject to other engine state (58c609f)
  • wdb: finish export package store wdb snapshot to asb, import package should use it (a7c265b)
  • wdb: import wdb create snapshot (abdb9a8)
  • wdb: import wdb should dispose inspector canvas gameObject (07e54bf)
  • remove ImmutableSparseMapService.re (291b8e4)
  • update files (91c58e4)
  • update files (e3a5e09)
  • update wonder.js,wonder-bs-jest,wonder-commonlib,jest version (3891511)

Performance Improvements

  • img: change img size (a50b2d3)
  • inspectorCanvas: optimize render inspector canvas: cache texture (51a9e19)