PinnedSwiftRoll 🐦·Oct 27, 2023Command Pattern Allocation Free in C# Unity / Godot (without memory allocations)In short — What is this article about? How to use Command pattern in C# without producing heap allocations for each new command
SwiftRoll 🐦·Apr 23, 2024Singleton Alternatives in Unity C#Researching Dependency Injection (DI) and Service LocatorA response icon2A response icon2
SwiftRoll 🐦·Oct 31, 2023Optimizing Code by Replacing Classes with Structs, Unity C# TutorialIf you don’t find yourself understanding the difference between structs and classes, I would recommend researching that first. Otherwise…
SwiftRoll 🐦·Oct 30, 2023How to improve performance of RaycastAll by using RaycastNonAlloc in UnityIf you need to use RaycastAll often (like each frame of your game), consider switching to RaycastNonAlloc method which acts faster and…
SwiftRoll 🐦·Oct 29, 2023Unity built-in pooling of collections (List/Dictionary/other)Any new() collection in C# creates allocation which increases load on Garbage Collector (in short, it costs you a little of your game’s…
SwiftRoll 🐦·Sep 19, 2023Godot C# - Get child node by type <T> extensionThis extension methods provides functionality similar to Unity’s GetComponentInChildren<T> or GetComponentInParent<T> without providing…A response icon1A response icon1
SwiftRoll 🐦·Sep 15, 2023Quickly migrating unit tests from Unity to Godot 4 C#If you need quickly to migrate your unit tests from Unity to Godot you can use code from this article