๐ŸŽจโœจ Step into the world of Sketch-n-Smash, where your imagination takes center stage! ๐Ÿ–Œ๏ธ๐Ÿ’ซ Create vibrant designs in the air with your magical drawing tools, and when itโ€™s time for a fresh start, grab your trusty eraser ๐Ÿงน to clean things up. ๐ŸŒˆโณ Your creations sparkle for 40 seconds before vanishing, making room for endless new ideas. ๐Ÿ–‹๏ธ๐ŸŽญ Whether you're sketching, experimenting, or just having fun, this MR adventure is your canvas to explore. ๐ŸŒŸ๐Ÿฅฝ Let your creativity shine! ๐Ÿ’ก๐ŸŽ‰
App Manager Script
How it worksย  ๐ŸŽฎ๐Ÿ–‹๏ธ
This is the main controller for your app. It manages the drawing and erasing features:
Drawing:
- When the user pulls the left trigger or right trigger ๐ŸŽฏ, a dot is created at the position of the respective hand edge (TheLeftEdge or TheRightEdge) ๐Ÿ’ก.
- The size of the dot depends on how much the user presses the trigger ๐ŸŽ›๏ธ.
- It uses Instantiate() to create the left or right dot (TheDotL or TheDotR) โœ๏ธ.
Erasing:
- When the user presses the left hand trigger ๐Ÿ–๏ธ or right hand trigger ๐Ÿคš, the erasers (Leraser or Reraser) become active โœ….
- Once the hand trigger is released, the erasers are deactivated ๐Ÿšซ.
Purpose: This script lets users draw with triggers and erase with hand triggers, making the app interactive and creative! ๐ŸŽจโœจ
Erase Me Script
This script controls objects that can be erased in the game.ย 
Here's how it works:
Start() ๐ŸŒŸ:ย Every object this script is attached to will automatically destroy itself after 40 seconds โณ.
OnTriggerEnter(Collider WhatHit) ๐Ÿ”„:ย If something collides with the object:
- It checks if the thing that hit it has the tag "eraser" ๐Ÿงฝ.
- If yes, the object will destroy itself immediately ๐Ÿšฎ.
Purpose: This makes the objects erasable when hit by an "eraser." ๐Ÿ–Œ๏ธ
Self Destroy Script
How it woksโณ๐Ÿ”ฅ
This is a simple cleanup script for objects:
Start(): As soon as the object is created, it destroys itself after 40 seconds โŒ›.
Purpose: Ensures your game doesnโ€™t become cluttered with old drawings ๐Ÿ—‘๏ธ.
Come take a look!
You can find this project and many more in my Github repositories!
Back to Top