
Risk of Rain 2
You are viewing a potentially older version of this package. View Latest Version

R2API.Addressables is a submodule for R2API that implements systems for working with the AddressablesAPI from Unity.
Currently it adds the AddressReferencedAsset system, which allows you on the Editor or on Code to easily refer to either an explicit Asset, or an Address to said asset.
NoCataloLoad attribute, which when implemented on a field and in conjunction with RoR2EditorKit, forces an AddressReferencedAsset to never be loaded from the catalog.AddressableComponentRequirement attribute, when used with an AssetReferenceGameObject or an AddressReferencedPrefab, it can restrict the lookup search in RoR2EditorKit to only include Game objects that have the specified componentAddressReferencedAsset(UnityEngine.Object) constructor which would incorrectly set UseDirectReference to falseAddressReferencedEquipmentDef wasnt marked as "Serializable"AddressReferencedAsset is "Invalid". Invalid in this instance means that no direct reference to an asset exists, and the string address is null, empty or whitespace.AddressReferencedAsset has a direct reference to an Asset.AddressReferencedAsset<T>