unity 3d - scripts - miscellaneous

Object Recycler

sourcecodes images FB Share Button png    sourcecodes images Pinterest Share Button png
  » Demo & Download file here «
.ai, .eps, .psd, .zip and examples (html, js)
Object Recycler object recycling, optimization, performance, utility hardcast.de
 

Object Recycler

Object Recycler

Does your game need good performance? Are you using an object pool for your objects?No?
You will then likely experience moderate to extreme performance improvement by recycling your objects!


Object recycling
Object recycling is the art of reusing objects instead of all the time creating new ones and destroying old ones. Each type of recyclable object gets its own dedicated object pool by the recycler.
Why is creating and destroying bad? Because it creates a lot of work for Unity and will decrease performance, especially when it has to take out the trash a lot (clean destroyed objects).
If you are using GameObject.Destroy(gameobject) in your code then you may consider object recycling.

The object recycler works by keeping track of your deactivated objects and making them active once a new objects are needed instead of creating a new one.

Features

Easy setup and use
Just add the ObjectRecycler script to an gameobject and you are ready to go!
Native Unity: GameObject.Instantiate(prefabObject);
Object Recycler: ObjectRecycler.Get(prefabObject);
Object recycling pools are dynamically created and removed on demand
No need to set up the object recycling yourself – it’s done for you, implicitly. Options for automatic removal of object pools (and cleaning up deactivated objects in it) that have not been used for a time.
Generics
Don’t do the casting yourself, just do this: CustomObject customObject = ObjectRecycler.Get(customObjectPrefab);
Lightweight
Minimalistic, KISSable (Keep It Simple, Stupid) code. Easily modifiable.




The code is written in C#, but is just as easily used in UnityScript/javascript.

object recycling, optimization, performance, utility
  » Demo & Download file here «
.ai, .eps, .psd, .zip and examples (html, js)
provides unlimited downloads of royalty stock images, vectors, illustrations, icons, buttons and other graphics of all kinds. Create bespoke designs, logos, technical drawings, animations and so much more with our Object Recycler. Download Vector Art, Stock Images, Graphic Vectors, Vector Clipart, High-res Vector Images, Symbols, Icons, Vector Silhouettes and more - hardcast.de.

More:

  • Pattern in Nautical Style with Belts.
    VIEW ITEM
    Pattern in Nautical Style with Belts.
  • Vector Download Pattern in Nautical Style with Belts. abstract, backdrop, background, belt, cable, chain, continuity, curtain, curve, design, fabric, fashion, frame, luxury, military, nautical, ornament, pattern, sea, seam, seamless, shine, square, strike, strong, style, texture, vector, wallpaper, wrapping…
  • Anchor
    VIEW ITEM
    Anchor
  • Vector Download Anchor anchor, art, backgrounds, computer, cruise, decoration, design, eps 10, equipment, icons, illustrations, isolated, nautical, object, out, painting, people, ribbon, sailor, sea, sharp, ship, sign, steel, symbol, tattoo, vector, vessel, water, white…
  • Happy cards
    VIEW ITEM
    Happy cards
  • Photo Download Happy cards 20s, Expressing, activity, adults, at, attractive, bags, beautiful, beauty, blond, brown, card, casual, caucasian, cheerful, consumerism, credit, customer, cute, enjoyment, fashion, female, friendship, fun, girl-friends, group, happiness, holding, joy, laughing, lifestyles, looking, mall, people, retail, sale, shopaholic, shopping, showing, smile, smiling, store, three, togetherness, toothy, walking, white, woman, women, young
  • Hong Kong night
    VIEW ITEM
    Hong Kong night
  • Photo Download Hong Kong night Hong, architecture, asia, background, building, business, central, china, city, cityscape, commercial, corporate, district, downtown, economy, finance, financial, hong kong, hongkong, kong, landscape, metropolis, modern, night, office, peak, scene, sky, skyline, skyscraper, tall, urban, view
  •  
https://hardcast.de Free Photo hardcast items 10 05 39 12 92 livepreview jpgHong Kong night
0.00 USD new
3.5 0 5 1389 2083
Object RecyclerDoes your game need good performance? Are you using an object pool for your objects?No? You will then likely experience moderate to extreme unity 3d - scripts - miscellaneous
https://hardcast.de
Free Photo Hong Kong night
hardcast items 10 05 39 12 92 livepreview jpg
leungchopan / https://hardcast.de
Free Photo Hong Kong night
Written by:
hardcast items 10 05 39 12 92 livepreview jpg
Published by:
hardcast items 10 05 39 12 92 livepreview jpg
on
2017-06-27
Free Photos
hardcast items 10 05 39 12 92 livepreview jpg
hardcast items 10 05 39 12 92 livepreview jpg Hong Kong night