跳到主要内容

Class EditorEntityResource

Represents entity type resource.

Events

onReloadEnd

public event Action onReloadEnd;

onReloadStart

public event Action onReloadStart;

Properties

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; }

resourcePath

public abstract string resourcePath { get; }

icon

public abstract Texture icon { get; }

Methods

Reload([bool rebuildAddress = true], [bool persistent = true])

public void Reload([bool rebuildAddress = true], [bool persistent = true])

OnLoadResource(string name, string path)

This method is called when resource is loaded.

protected virtual void OnLoadResource(string name, string path)

GetResourceAddress(string name, string path)

Whenever winS.UnityEditor.ResourceManagement.EditorEntityResource.Reload(System.Boolean,System.Boolean) and winS.UnityEditor.ResourceManagement.EditorEntityResource.addressable is true, this method is called to get address of the resource.

protected virtual ResourceAddressInfo GetResourceAddress(string name, string path)