Coder Social home page Coder Social logo

mohsinkhan26 / prefabmanager Goto Github PK

View Code? Open in Web Editor NEW
16.0 2.0 1.0 1.85 MB

Prefab Manager also has pooling

Home Page: http://cslearners.blogspot.com/2017/07/unity3d-prefab-manager.html

License: MIT License

C# 100.00%
prefab-manager pool hierarchy unity unity3d pooling unity-editor csharp objects manager

prefabmanager's Introduction

Overview Prefab Manager

Introduction

After spending some years in Game Industry, I realize managing prefabs and make them pool is a major and necessary module of each game.

As, instantiating and destroying calls are really expensive at runtime. So, due to this, it is better to pool instantiated objects and recycle them after use, for future.

Purpose

In Unity projects, programmers have to instantiate and destroy various GameObjects at runtime like enemies, particles, powerups, health boxes etc. So, it is better to pool them and recycle them.

Unity Asset Store Link

http://u3d.as/UkT

Features

  • Easily pool GameObjects in your game
  • Promotes the use of pooling concept
  • Auto scale your pool
  • Prefab manager to spawn and recycle
  • Improve the performance of your game
  • Place prefabs anywhere in Assets/ and just place a reference in PrefabManager
  • Maintains hierarchy under PrefabManager
  • Select when you want to create your pool on Awake, Start or Manually
  • Still you can update the data of the newly spawned objects
  • Easy to use, Plug n play
  • Open Source code without any DLL

Usage

  • Import plugin
  • Add enum against your prefab in PrefabType.cs
  • Add respective prefab reference in PrefabManager.prefab
  • Now, just drag PrefabManager.prefab to hierarchy view and call its public functions

HowToUse-01.png

HowToUse-02.png

HowToUse-03.png

HowToUse-04.png

HowToUse-05.png

Remember

  • Drag PrefabManager.prefab in the first scene and it will persist

TODO

  • Show count of pool in editor
  • Check for duplicate entries in list and highlight with red background

Special Thanks

  • All the users who provide feedback and suggestions to improve
  • All the users who gave reviews on Asset store

Thanks for your support!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.