๐จโจ 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!