Version: 2023.2
言語: 日本語
public bool HasInvokeOnRenderObjectCallbacks ();

戻り値

bool True if there are OnRenderObject callbacks false if none.

説明

Check if any objects in the scene have OnRenderObject callbacks registered.

You can use this function to check if InvokeOnRenderObjectCallback will actually call any callbacks. This can be usefull to avoid calling InvokeOnRenderObjectCallback. It als means no arbitrary code will run in the callbacks that could change graphics state. This can help your renderpipeline to avoid doing unececarry graphics state changes before/after the callbacks.

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