Coder Social home page Coder Social logo

recyclerkit's People

Contributors

alexander-mironov avatar bncastle avatar prime31 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

recyclerkit's Issues

Your license seems to be more restrictive than you want

Unless I'm wrong about your intentions, you seem to not want this pooler to be sold as part of separate asset/kit. BUT CC-by-nc-sa also prevents its usage in any commercial game whatsoever. Either you should get some lawyer to write you license that actually says what you want (expensive) or get some other license that actually lines up with what you want.

Also please note that CC license seems to not be very good for code according to Creative Commons themselves. I disagree, but "nc" part of the license you're using makes me unable to utilize it in the game I'm working on, even though the code's quality seems to be great and it's very easy to use..

Licence

Attribution-NonCommercial-ShareAlike 3.0

and

You are free to use RecyclerKit in any and all games that you make. You cannot sell RecyclerKit directly or as part of a larger game asset.

That isn't the same as my understanding of NC - you intend to allow use in commercial games as long as the asset isn't sold - but that distinction isn't part of the CC-NC licence terms. Unless I've misunderstood somewhere?

(CC licences are tricky for code and CC themselves advise against it: https://creativecommons.org/faq/#can-i-apply-a-creative-commons-license-to-software )

Anyway - sorry to be the licence geek and thanks for offering this to the community in any form!

Objects not Despawning after delay.

Using:
TrashMan.despawnAfterDelay( gameObject, lifetime );

Sometimes it works, other times it doesn't. I can't locate the issue reading through the code. Sorry can't be more helpful, not sure what to look for as to why it doesn't despawn. Using Unity 5.2.

Lose editor settings when entering scene

Hi,

I ran into an issue that if I enter the DemoScene from another scene, whatever I have on the TrashMan editor settings are gone. Not sure if it is something related with serializing and deserializing the settings, even though it works on Play on DemoScene. Thanks.

automaticallyRecycleParticleSystems is true but there is no ParticleSystem on this GameObject!

I added a Prefab that has 2 particle systems as childeren inside the prefab. But I always get this error message when I enable RecycleparticleSys. Would be nice to detech Child particle systems and not add them separately.

automaticallyRecycleParticleSystems is true but there is no ParticleSystem on this GameObject!
UnityEngine.Debug:LogError(Object)
TrashManRecycleBin:spawn() (at Assets/Scripts/TrashManRecycleBin.cs:192)
TrashMan:spawn(Int32, Vector3, Quaternion) (at Assets/Scripts/TrashMan.cs:136)
TrashMan:spawn(GameObject, Vector3, Quaternion) (at Assets/Scripts/TrashMan.cs:227)

Stack count or compare to null?

Hi,

In TrashManRecycleBin's line number 214, you compare return value of Peek with null but I face an error with this line saying that "Operation is not valid due to the current state of the object" and it's thrown when the _gameObjectPool is empty.

I think we should instead compare it's count property against zero. I trust your C# skills are far better than mine so I'm not sure abut this and probably I'm missing something but doing this edit apparently solved me problem.

So to sum it up, I think:
while( _gameObjectPool.Peek() != null )
should change to:
while( _gameObjectPool.Count > 0 )

Thanks.

Multi-TrashMan version

Hello.

I wanted the ability to have more then 1 TrashMan instance available at once. This comes from doing some DontDestroyOnLoads, and additive loading, where for some Global items i want a TrashMan, but also on a scene/level by level basis i would like some TrashMan instances.

I've made the data into a class member. I've also added a bunch of cleanup code, to remove instances of RecycleBins from the class data members.

Feel free to check out my branch for examples.

Any comments or questions, or alternative ways of accomplishing what i did are welcome! Thanks for this great library.

Issues on PC standalone

Using the main branch, on a Windows standalone .exe I get "attempted to spawn go XXX but there is no recycle bin setup for it. Falling back to Instantiate" any time I try to spawn an object. Works in the editor so my only guess would be that the instance id is different on the build?

Sudden disappearance of GO's?

Hi,

Since I've added RecyclerKit to my game, sometimes objects that are spawned out of the pool, get disappeared. I tried very hard but can't trace the problem. Is this a known bug? How can I track it?

Thanks.

OnLevelWasLoaded call order

In some cases OnLevelWasLoaded (in TrashMan.cs) may be called after a scene object's Awake call (I'm not sure exactly what causes this). If that happens then the _instanceIdToRecycleBin is cleared out after the prefab pool has been initialized and this causes all spawn calls to think that the prefab instance ids are not available due to _instanceIdToRecycleBin being empty.

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.