The GetReferences
method retrieves a list of assets that are referenced by the current asset. This can be useful for understanding dependencies and relationships between assets within a project.
The GetReferences
method retrieves a list of assets that are referenced by the current asset. This can be useful for understanding dependencies and relationships between assets within a project.
To use the GetReferences
method, call it on an instance of the Editor.Asset
class. You can specify whether to perform a deep search for references by passing a boolean value to the deep
parameter. A deep search will recursively find all references, including those referenced by other assets.
// Example of using GetReferences method Editor.Asset myAsset = new Editor.Asset(); bool deepSearch = true; List<Editor.Asset> references = myAsset.GetReferences(deepSearch); foreach (var reference in references) { Console.WriteLine($"Referenced Asset: {reference.Name}"); }