Comments (8)
Hi, I'm curious if there are any updates on this feature? It would really improve the ux of the editor :)
from babylon.js.
I understand, thanks for the reply!
from babylon.js.
Some forum requests for this:
https://forum.babylonjs.com/t/add-shortcuts-to-undo-and-redo-in-the-gui-editor/42326
https://forum.babylonjs.com/t/nme-improvements/35266
https://forum.babylonjs.com/t/gui-editor-improvements-suggestion-feedback-parts-1-to-6/32704
https://forum.babylonjs.com/t/nodematerial-add-undo/30672/2
from babylon.js.
I have a generic script for "Commands" that you could wrap all the existing functionality in pretty easy.
https://github.com/Pryme8/Doomish/blob/main/src/Editor/Commands/Command.ts
Not sure if this would do it for you, but it has worked in every project that I have made that needs undo redo.
You can see how its used by the editor here:
https://github.com/Pryme8/Doomish/blob/main/src/Editor/Editor.ts#L295
and then a simple example command would be like this:
https://github.com/Pryme8/Doomish/blob/main/src/Editor/Commands/Common/DeleteRoomCommand.ts
Normally you just define them inline and not on a separate file like this, here is an example of that:
https://github.com/Pryme8/Doomish/blob/main/src/Editor/Gizmos/Gizmos.ts#L91
This can also be tied into a notification system that stacks little popups to the user notifying them when they have ran/undone a command etc.
If you are interested let me know, if not no worries!
from babylon.js.
This is still on our agenda. It is simply not that trivial with our current architecture. If we want to deliver something, we want to deliver it the best we can.
We have no timeline on this, sadly.
from babylon.js.
https://github.com/Pryme8/Doomish/blob/main/src/Editor/Commands/Command.ts
The link you provided cannot be opened, I would like to refer to it
from babylon.js.
Since NME etc. are mainly based on JSON it might be very simple to use immer and Json patches?
Immer can generate changes and inverseChanges
Immer however produces immutable data structures. And every change on the json would need to be wrapped by immer then. But it is pretty convenient.
from babylon.js.
This issue has been automatically staled because it has been inactive for more than 14 days. Please update to "unstale".
from babylon.js.
Related Issues (20)
- Cannot build. Missing ImageEncodeOptions, VideoFrame, etc. HOT 4
- [Physics] would like to have motorized constraints added. HOT 1
- Internal types exported in definition types. HOT 1
- scene.ambientColor does not work HOT 1
- ParticleSystem of type "CylinderDirectedParticleEmitter" dont convert direction vectors HOT 1
- PhysicsAggregate does not update mesh with setAngularVelocity and setLinearVelocity after 7.2.1 update HOT 5
- [XR] Failproof the snippet reference in NearInteraction
- Yoyo animations trigger onAnimationGroupLoopedObservable multiple times per loop
- Add support for IES Light Profiles HOT 2
- Improve new texture support in Particle System Editor
- NGE nodes and ports exposed on frame don't export
- GLB Import Not Displaying in BabylonJS Sandbox HOT 2
- 7.4.0 and Custom Procedural Textures HOT 1
- [XR] Update depth sensing implementation to support the new specs HOT 1
- Specular/Glossiness material to Metal/Rough material conversion HOT 1
- GUI JSON parse - provide callback to allow updating link URLs from development to production servers
- Expand memory leak testing to all packages
- Move documentation repo to the monorepo
- Improve GaussianSplatting for VR HOT 2
- BabylonFileLoader
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from babylon.js.