MCPcopy Index your code
hub / github.com/DavidAzouz29/Snap

github.com/DavidAzouz29/Snap @v3.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v3.1 ↗ · + Follow
167 symbols 219 edges 34 files 42 documented · 25%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Snapper

Blockly for Unity Editor. 3rd Year Student Major Assessment. LINK

Alt tag

Getting Started:

1) Navigate to "Window/Snapper/Snapper Quick Tools". 2) Navigate to "Window/Snapper/Snapper Editor". 3) Start dragging and dropping blocks. Tip: Click the "Live Updates" toggle for generated code on the fly. 4) Click "Live Updates" toggle OR "To C#" when ready. 5) Click "Copy To Clipboard". 6) Click the "C#" button in "Snapper QT" OR navigate to "Window/Snapper/Save/Save as C# Script". Describe your script in the filename. Tip: use Pascal Case e.g. PlayerMovement. 7) Create a primitive by selecting your desired primitive from the dropdown. Then click on the "GameObject" button to add the latest Snapper script created to a primitive. Alternatively, right click in the hierarchy/ 3D Object/choose your preference e.g. Cube. Click "Add Component" and add your new script. 8) Press Play to see your creation in action!

Features:

  • Drag-and-Drop coding for Unity!
  • GameObject button to start prototyping in minutes!
  • Assessment Wizard

3rd Party:

  • Blockly: https://github.com/google/blockly
  • ClipboardJs: https://clipboardjs.com/
  • Unity Web Browser: http://www.codegist.net/snippet/c/twitterwindowcs_rraallvv_c
  • PolyGlot: https://github.com/agens-no/PolyglotUnity

Notes:

  • Blockly: Using Block Based Coding in your App https://youtu.be/wDJua9hgyZM
  • https://docs.unrealengine.com/latest/INT/GettingStarted/FromUnity/
  • C++ https://github.com/dineshLL/lisa
  • Node Editor: https://github.com/Seneral/Node_Editor_Framework
  • https://github.com/cityindex/blockly-generator-csharp

Known Issues:

  • When typing in CAPS, certain shortcuts may trigger. Use Caps Lock instead.

TODO:

  • For _componentTypes, if the first letter of _componentNames[i] == prev, continue checking the next letter until they don't match anymore - set the folder name to that string.
  • If the next _componentTypes contains folder name - add to that folder e.g. NavMeshAgent, OffMeshLink
  • Click on the "Generate Categories" Button under Snap -> Generate Categories.

Core symbols most depended-on inside this repo

CreatePrimitive
called by 6
Assets/Snapper/Editor/SnapperEditorWindow.cs
onClick
called by 5
Assets/StreamingAssets/clipboard.js-master/src/clipboard.js
removeFake
called by 4
Assets/StreamingAssets/clipboard.js-master/src/clipboard-action.js
taChange
called by 4
Assets/StreamingAssets/snapper/src/assets/js/snapper_workspace.js
isSupported
called by 3
Assets/StreamingAssets/clipboard.js-master/src/clipboard.js
getAttributeValue
called by 3
Assets/StreamingAssets/clipboard.js-master/src/clipboard.js
handleResult
called by 3
Assets/StreamingAssets/clipboard.js-master/src/clipboard-action.js
Load
called by 3
Assets/Snapper/Editor/WebWindow.cs

Shape

Method 131
Class 20
Function 14
Enum 2

Languages

C#77%
TypeScript23%

Modules by API surface

Assets/Editor/ToolGameObjectFinder.cs37 symbols
Assets/Snapper/Editor/SnapperWindow.cs21 symbols
Assets/StreamingAssets/clipboard.js-master/src/clipboard-action.js14 symbols
Assets/StreamingAssets/clipboard.js-master/src/clipboard.js12 symbols
Assets/Snapper/BlocklyPlayground.cs12 symbols
Assets/Editor/EditorIconViewer.cs12 symbols
Assets/StreamingAssets/snapper/src/assets/js/snapper_workspace.js11 symbols
Assets/Snapper/Editor/WebWindow.cs8 symbols
Assets/Snapper/Editor/SnapperEditorWindow.cs8 symbols
Assets/Snapper/Editor/AssessmentWizard.cs7 symbols
Assets/Editor/NodeEditor.cs6 symbols
Assets/Snapper/Code/SnapperCode2.cs4 symbols

For agents

$ claude mcp add Snap \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact