For my Unity Project I created a range based shooter where the goal is to place your own targets using the right mouse button and the left mouse button to create projectiles that shoot towards a target. There is also a feature for a button that enables or disables the emissive layer for both 3D objects and can change the color type with a dropdown menu. In addition, there is the ability to turn on and off the target’s rotation with the toggle UI and change the target’s scale size with the slider UI.  

Feature (1): Display Mouse Position

Input: Mouse move location

Process: assign mouse X, Y position to text object

Output: Text is displayed in the upper left corner showing X and Y of the mouse.

Difference: Only the location of the position in canvas as this is a specific requirement.

Feature (2): Projectile/Target Object Spawn

Input: Left/Right Mouse click

Process: Creates a new object the base on the mouse input will either fire a projectile (Left) or spawn an object (Right) and both will fade over time.

Output: (Left) Object is shot, (Right) Object is placed Description: Object behaves based on click type (Left) Object is shot, (Right) Object is placed

Difference: Both mouse inputs are being used and the projectile is a moving object in the screen while the target is a once per click rather than dragging. In addition, there are two prefabs spawn with the mouse buttons. Left click is projectile prefab and right click is the target prefab.

Feature (3): Emissive Button

Input: UI Button

Process: Clicking on the button would either toggle emission state on or off on the 3D objects.

Output: Objects spawn from the mouse will either be glowing or not

Difference: This button turns on and off the emissive layer for the material rather than clearing the screen.

Feature (4): Emissive Color Dropdown

Input: Left Click Dropdown Menu

Process: If the emissive is on the click on the dropdown and it would show a list of colors to select which are White, Yellow, Green, Cyan, Blue, Magenta, and Red. To change the emission color value of the object material click on the type of color from the list and if the emissive is on the color would change to the specific color.

Output: Change the color type of the emissive objects (Only if the emissive is on)

Difference: Instead of a slider and base color change from Project 1 example this version affects the emissive material layer and is using a Dropdown UI version.

Feature (5): Target Rotation Toggle

Input: Left Click Toggle

Process: The check mark disappears and disables the spawn targets rotation but clicking it again will make the check mark re-appear and targets are able to

change rotation again

Output: spawn targets rotational change turns on or off

Difference: Adds the ability to turn on/off random rotation value rather than the turning on/off the ability to stop the time auto clear.

Feature (6): Target Scale Slider

Input: Slider

Process: Left Clicking and dragging the slider to the right increases the scale of the target prefabs created and dragging the slider to the left decreases the scale of the slider size. 

Output: spawn targets size scale changes

Difference: This slider increases only one specific object which is the Target and in addition this has a specific Min/Max limiter scale that would work for my scene. Also this feature does keep a text value track of the current scale of the target.

StatusReleased
PlatformsHTML5
AuthorJoelC203
Made withUnity