Skip to content

Instantly share code, notes, and snippets.

View Draugor's full-sized avatar

Draugor Draugor

View GitHub Profile
///
/// Simple pooling for Unity.
/// Author: Martin "quill18" Glaude ([email protected])
/// Extended: Simon "Draugor" Wagner (https://www.twitter.com/Draugor_/)
/// Latest Version: https://gist.github.com/Draugor/00f2a47e5f649945fe4466dea7697024
/// License: CC0 (http://creativecommons.org/publicdomain/zero/1.0/)
/// UPDATES:
/// 2020-07-09: - Fixed a Bug with already inactive members getting Despawned again. thx AndySum (see: https://gist.github.com/Draugor/00f2a47e5f649945fe4466dea7697024#gistcomment-2642441)
/// 2020-06-30: - made the "parent" parameter avaible in the public API to spawn GameObjects as children
/// 2018-01-04: - Added Extension Method for Despawn on GameObjects
@Draugor
Draugor / .editorconfig
Created September 16, 2023 14:17
Basic C# naming and code style conventions as a .editorconfig
# Remove the line below if you want to inherit .editorconfig settings from higher directories
root = true
#### this file was exported via Visual Studio 2022, after configurating VS using
#### https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/coding-style/coding-conventions
#### and https://github.com/dotnet/runtime/blob/main/docs/coding-guidelines/coding-style.md
#### additionally it disables the basic IDExxx Analyzer to only show Roslynator ones (see section 'Analyzer configurations' to change that)
# C# files
[*.cs]