-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Playground code generator : from Destructive to Additive - Inserting …
…Code Snippets at cursor position" (#15269) * Code Generator from Destructive to Additive - Removed onUpdateGenerator && onGenerate - Added onInsertSnippet - Added new snippets : Skybox, Lens Flares, Audio, Sprites * Removed the use of localStorage - passing snippetKey param from React UI to procedural generator through observables stack * linting fix
- Loading branch information
Showing
6 changed files
with
97 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,94 +1,50 @@ | ||
[ | ||
{ | ||
"label": "Run", | ||
"tooltip": "Run the code generator with these params", | ||
"onClick": "onGenerate" | ||
}, | ||
{ | ||
"label": "Run Auto", | ||
"tooltip": "Automatic run of the code generator on param change", | ||
"storeKey": "generateAuto", | ||
"defaultValue": true, | ||
"onCheck": "empty", | ||
"keepExpanded": true | ||
}, | ||
{ | ||
"label": "Debug Layer", | ||
"tooltip": "Open debug layer", | ||
"storeKey": "debugLayer", | ||
"defaultValue": false, | ||
"onCheck": "onUpdateGenerator", | ||
"label": "Scene", | ||
"tooltip": "Scene tools", | ||
"subItems": ["Debug Layer", "Shadows", "Skybox", "Audio", "Lens Flare", "Sprites"], | ||
"keepExpanded": true | ||
}, | ||
{ | ||
"label": "Camera", | ||
"label": "Cameras", | ||
"tooltip": "Select a camera type", | ||
"storeKey": "useCamera", | ||
"defaultValue": "Arc Rotate (Rad)", | ||
"subItems": ["Arc Rotate (Rad)", "Arc Rotate (Deg)", "Free", "WebXR"], | ||
"onClick": "onUpdateGenerator", | ||
"keepExpanded": true | ||
}, | ||
{ | ||
"label": "Light", | ||
"label": "Lights", | ||
"tooltip": "Select a light type", | ||
"storeKey": "useLight", | ||
"defaultValue": "Hemispheric", | ||
"subItems": ["Hemispheric", "Directionnal", "Point", "Spot", "3 Spots"], | ||
"onClick": "onUpdateGenerator", | ||
"keepExpanded": true | ||
}, | ||
{ | ||
"label": "Shadows", | ||
"tooltip": "Enable shadows", | ||
"storeKey": "useShadows", | ||
"defaultValue": false, | ||
"onCheck": "onUpdateGenerator", | ||
"keepExpanded": true | ||
}, | ||
{ | ||
"label": "Mesh Builder", | ||
"tooltip": "Build meshes using BABYLON.MeshBuilder", | ||
"storeKeys": ["useGround", "useSphere", "useBox", "useCylinder"], | ||
"defaultValues": [true, true, false, false], | ||
"subItems": ["Ground", "Sphere", "Box", "Cylinder"], | ||
"onCheck": "onUpdateGenerator", | ||
"keepExpanded": true | ||
}, | ||
{ | ||
"label": "Animations", | ||
"tooltip": "Import animated characters", | ||
"storeKey": "useAnimation", | ||
"defaultValue": "None", | ||
"subItems": ["None", "Dude", "Dummy", "Samba Girl"], | ||
"onClick": "onUpdateGenerator", | ||
"subItems": ["Dude", "Dummy", "Samba Girl"], | ||
"keepExpanded": true | ||
}, | ||
{ | ||
"label": "Particles", | ||
"tooltip": "Add a simple particle system to the scene", | ||
"storeKey": "useParticles", | ||
"defaultValue": "None", | ||
"subItems": ["None", "Simple", "Color Gradient", "Complex"], | ||
"onClick": "onUpdateGenerator", | ||
"subItems": ["Simple", "Color Gradient", "Complex"], | ||
"keepExpanded": true | ||
}, | ||
{ | ||
"label": "Load Snippet", | ||
"tooltip": "Load asset from Snippet Server", | ||
"storeKey": "useSnippet", | ||
"defaultValue": "None", | ||
"subItems": ["None", "Particles", "Node Material", "GUI", "GUI on Mesh"], | ||
"onClick": "onUpdateGenerator", | ||
"subItems": ["Particles", "Node Material", "GUI", "GUI on Mesh"], | ||
"keepExpanded": true | ||
}, | ||
{ | ||
"label": "Import / Export", | ||
"tooltip": "Import or Export assets", | ||
"storeKey": "useImport", | ||
"defaultValue": "None", | ||
"subItems": ["None", "Import Mesh", "Export GLB", "Export GLTF"], | ||
"onClick": "onUpdateGenerator", | ||
"subItems": ["Import Mesh", "Export GLB", "Export GLTF"], | ||
"keepExpanded": true | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.