Grid System Unity C#
$14.99+
$14.99+
https://schema.org/InStock
usd
Kenzenken
A simple grid system that is Procedural Grid System that allows placement of minimum 1 unit grids.
Youtube demonstration : https://www.youtube.com/watch?v=TIzTAotqYhE
- Procedural Grids (flexibility of grid amount)
- Drag UI Image to spawn Prefab.
- Repositioning objects around the grid after placing them.
- Specify Object Size in prefab to determine the amount of grid cells it occupies.
- Objects snap to grid during Mouse Drag input.
Scene file is included. Please refer to the scene file for usage of scripts. Feel free to modify my sphagetti code.
- including 3 fully textured models.
- including Icon menu UI.
- including copyright-free sound-effects.
Main Code:
- GridManager.cs is the hub for all the grid managing.
- GridCell.cs stores information about the grids.
- ObjectDragging.cs is responsible for object dragging from the UI. (It then passes the handling of dragging to PlacedObjectDragging.cs)
- PlacedObjectDragging.cs is responsible for reposition and dragging objects.
- PrefabManager.cs stores information such as object size of the prefab.
- PrefabHoverAnimation.cs is responsible for the animation on mouse hover.
- CameraPlayerControl.cs rotates the camera around the center of the grid.
- ExitGame.cs exits runtime if in Editor OR exits the game if it is an application.
- AudioManager.cs is a Singleton that controls the audio of the game.
- MouseCursor.cs changes the image of your cursor and when LMB is clicked.
- ObjectSelectedName.cs is responsible in the change of TextMeshPro's Text when mouse is hovering on the UI Image.
- ToolTip.cs handles the visibility of panels showing the tooltip when mouse is hovered. (requires UI to be made in advance.)
- UIManager allows the dragging and repositioning of the UI and is compatible with the floating animation.
Additional Code:
- ObjectFloatingAnimation.cs provides a floating animation to the UI.
- RenderTargetToPNG.cs provides the ability to render your textures into a .png file format in Unity.
- ObjectHiddenInGame.cs is for debug purposes where the gameobject would be inactive during "play".
feel free to send me an email for any inquiries: junnkit99@gmail.com
Thank you for the support! It means alot to me as I sell my code at a cheap price because i mostly create them for study purposes.procedural
A 2021 Unity Package file that includes the complete scene with the working game shown in the video link. All assets and scripts are included. Once purchased, download link will be sent to your email.
Size
7.57 MB
Add to wishlist
No refunds allowed