Class EditorEntityResources
Represents entity type resources.
Events
onReloadEnd
public event Action onReloadEnd;
onReloadStart
public event Action onReloadStart;
Properties
count
public int count { get; }
lastUpdateTime
public long lastUpdateTime { get; set; }
addressable
public virtual bool addressable { get; set; }
sort
public virtual int sort { get; }
name
public abstract string name { get; }
resourcesDirectory
public abstract string resourcesDirectory { get; }
icon
public abstract Texture icon { get; }
nameList
The names of all resources.
public List<string> nameList { get; }
pathList
The path of all resources (Relative to project folder).
public List<string> pathList { get; }
resourcesScanner
The scanner of resources. Scanner requires that the path to such a resource be returned (Relative to project folder).
protected abstract Func<IEnumerable<string>> resourcesScanner { get; }
Methods
GetPathByName(string resourceName)
public string GetPathByName(string resourceName)
Reload([bool rebuildAddress = true], [bool persistent = true])
public virtual void Reload([bool rebuildAddress = true], [bool persistent = true])
OnLoadResource(string name, string path)
This method is called every time a resource is loaded.
protected virtual void OnLoadResource(string name, string path)
GetResourceAddress(string name, string path)
Whenever a resource is loaded and winS.UnityEditor.ResourceManagement.EditorEntityResources.addressable is true, this method is called to get address of the resource.
protected virtual ResourceAddressInfo GetResourceAddress(string name, string path)