以下の内容はhttps://baba-s.hatenablog.com/entry/2020/11/16/080000_3より取得しました。


【Unity】using を使用して OnDemandRendering.renderFrameInterval を設定するクラス

ソースコード

使用例

using Kogane;
using System.Collections;
using UnityEngine;
using UnityEngine.Rendering;

public class Example : MonoBehaviour
{
    private void Update()
    {
        if ( Input.GetKeyDown( KeyCode.Space ) )
        {
            StartCoroutine( Hoge() );
        }
    }

    private IEnumerator Hoge()
    {
        using ( new RenderFrameIntervalScope( 5 ) )
        {
            yield return new WaitForSeconds( 3 );
        }
    }

    private void OnGUI()
    {
        GUILayout.Label( OnDemandRendering.renderFrameInterval.ToString() );
    }
}



以上の内容はhttps://baba-s.hatenablog.com/entry/2020/11/16/080000_3より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14