{"repo":"SST-Systems/StableRef","free":true,"listed":false,"github":"https://github.com/SST-Systems/StableRef","clone":"git clone https://github.com/SST-Systems/StableRef.git","description":"A convenient, reliable wrapper over Unity's [SerializeReference].","language":"C#","stars":17,"topics":["gamedev","guid","refactoring-safe","serialization","stable-reference","unity","unity-package","unity-utilities","csharp"],"license":"MIT","category":"game-templates","readme_excerpt":"English Русский --- A convenient, reliable wrapper over Unity's [SerializeReference] . StableRef makes working with polymorphic serialized references stable and comfortable: a searchable typed inspector selector, safe copy/paste, and editor tooling to find and fix references. On top of that, references survive class renames — a stable string type ID is stored alongside the object, so renaming or moving a class does not break existing serialized data. Table Of Contents Details - Installation - The problem it solves - Classes and attributes - Usage - Declaring a stable type - Using StableRef\\ in a field - Using StableRefList\\ - Generic value types - Auto-generated ID - Editor tools - Copying and pasting - License --- Installation 1. .unitypackage — Releases 2. UPM — Window → Package Manager → + → Add package from git URL : https://github.com/SST-Systems/StableRef.git Append #tag to pin a version. 3. Manual — clone or download, copy to Assets/ . Unity 2021.3+ --- The problem it solves Unity's built-in [SerializeReference] stores the full assembly-qualified type name. If you rename or move a class, Unity loses the reference and the field becomes null . StableRef decouples the serialized identity from the class name by letting you assign a permanent ID via [StableTypeId] . --- Classes and attributes Type Purpose --- --- StableRef Serializable wrapper holding a single polymorphic reference of type T . StableRefList Serializable list of StableRef items. [StableTypeId(\"id\")] Assigns ","default_branch":null,"files":null,"tree":[],"storefront":"/r/SST-Systems","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/SST-Systems/StableRef/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}