Skip to content

Spawn objects without a grid layout group and make them stack on top each other like tetris. It works for all screen sizes.

License

Notifications You must be signed in to change notification settings

nicoltoons/Spawning-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒŸ Spawn Objects in Unity โ€” No Grid Needed!

Easily spawn and arrange objects in Unity ๐Ÿงฑ without using a Grid Layout Group! This lightweight, fully-commented C# Unity extension lets you dynamically position objects Tetris-style ๐ŸŽฎ โ€” perfect for memory games, puzzle games, and procedural object placement where grid restrictions just get in the way.


๐Ÿš€ Why Youโ€™ll Love It

  • ๐Ÿงฉ No Grid? No Problem! โ€” Dynamically spawn objects anywhere without relying on Unityโ€™s Grid Layout Group.
  • ๐ŸŽฏ Smart, Adaptive Spawning โ€” Automatically positions and scales objects to fit your scene perfectly.
  • ๐Ÿง  Perfect for Memory & Puzzle Games โ€” Used in Mempairs Memory Card Game for real-world performance and flexibility.
  • ๐Ÿ’พ Save Object Positions โ€” Store and reuse coordinates using a multi-dimensional array for custom layouts.
  • ๐Ÿ“ฑ Responsive Design โ€” Works flawlessly across mobile, PC, and WebGL.
  • ๐Ÿ”“ Open Source & Easy to Customize โ€” Fully-commented C# code, ready for your next Unity project.

๐Ÿ› ๏ธ Tech Stack

Unity C#

Built with Unity Engine โš™๏ธ and C# scripting, compatible with all Unity versions.


๐ŸŽฅ Demo Preview

See the Gridless Spawning System in action: Unity Object Spawning Demo


๐Ÿ’ก Use Cases

  • ๐Ÿง  Memory & Card Matching Games
  • ๐Ÿงฉ Procedural Object Placement
  • ๐Ÿ—๏ธ Level Design & UI Tools
  • ๐ŸŽฎ Dynamic Inventory Systems
  • ๐Ÿงฐ Unity Game Development Utilities

โšก Quick Setup

  1. โฌ‡๏ธ Clone or download this repository.
  2. ๐Ÿ“‚ Import the script into your Unity projectโ€™s Scripts folder.
  3. ๐Ÿงฑ Attach it to your desired GameObject.
  4. ๐ŸŽจ Customize prefab, spacing, and layout options directly in the Inspector.

๐Ÿ† Why Choose This Spawning System?

โœ… Simplifies complex grid logic โœ… Saves time in UI and gameplay setup โœ… Ideal for 2D, 3D, and mobile games โœ… Beginner-friendly yet production-ready


Unity spawning system, spawn objects Unity, Unity gridless layout, object placement Unity, Unity procedural generation, Unity dynamic UI, Unity memory game, Unity 2D grid system, Unity prefab spawner, Unity tetris-style spawn, Unity tools for developers, Unity open source extension, C# Unity script example

About

Spawn objects without a grid layout group and make them stack on top each other like tetris. It works for all screen sizes.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published