Version: 2020.3

VisualElement.generateVisualContent

매뉴얼로 전환
public Action<MeshGenerationContext> generateVisualContent ;

설명

Called when the VisualElement visual contents need to be (re)generated.

When handled, it is possible to generate custom geometry in the content region of the VisualElement. This delegate is called only when the VisualElement has been detected to need to regenerate its visual contents. It is not called every frame when refreshing the panel. The content generated is cached and remains intact until a property on the VisualElement affecting visuals has changed or VisualElement.MarkDirtyRepaint is called. While executing code in a handler to this delegate, refrain from making changes to any property of the VisualElement. A correct handler should treat the VisualElement as 'read-only' and generate the geometry without causing side-effects. Changes done to the VisualElement during this event could be missed or lag appearance at best.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961