Version: 2023.2
언어: 한국어

ScriptableRenderContext.HasInvokeOnRenderObjectCallbacks

매뉴얼로 전환
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.