以下の内容はhttps://baba-s.hatenablog.com/entry/2022/11/21/090000より取得しました。


【Unity】Device Simulator の internal な機能にアクセスできるパッケージ

リポジトリ

使用例

using Kogane;
using UnityEditor;
using UnityEngine;

public static class Example
{
    [MenuItem( "Tools/Hoge" )]
    private static void Hoge()
    {
        // Device Simulator で選択されているデバイスの名前を取得します
        Debug.Log( DeviceSimulatorInternal.GetCurrentDeviceName() );

        // Device Simulator のデバイスを設定します
        DeviceSimulatorInternal.SetDeviceIndexFromDeviceName( "HTC 10" );

        // Device Simulator の表示をリフレッシュします
        DeviceSimulatorInternal.Refresh();
    }
}



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

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