文档

Unity Engine

Unity Engine

Initialize(Object[])

Called when the Preview gets created with the objects being previewed.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public virtual void Initialize(Object[] targets)

Parameters

targets

The objects being previewed.

Remarks

You can override this function and use this to cache or initialize anything needed by your preview.