跳到主要内容
版本:2.3.x

Class BuildContext

Assembly: YooAsset.Editor.dll
Declaration
public class BuildContext

Methods

ClearAllContext()

清空所有上下文对象

Declaration
public void ClearAllContext()

SetContextObject(IContextObject)

设置上下文对象

Declaration
public void SetContextObject(IContextObject contextObject)
Parameters
TypeName
YooAsset.Editor.IContextObjectcontextObject

GetContextObject<T>()

获取上下文对象

Declaration
public T GetContextObject<T>() where T : IContextObject
Returns

<T>

Type Parameters
  • T

TryGetContextObject<T>()

获取上下文对象

Declaration
public T TryGetContextObject<T>() where T : IContextObject
Returns

<T>

Type Parameters
  • T