Search Results for

    Show / Hide Table of Contents

    Class PLATEAUCityGmlProxy

    GMLファイルから都市情報を読み込みます。

    Inheritance
    System.Object
    PLATEAUCityGmlProxy
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: PLATEAU.CityInfo
    Assembly: cs.temp.dll.dll
    Syntax
    public class PLATEAUCityGmlProxy

    Methods

    LoadAsync(GameObject, String, String)

    GMLファイルをパースし、 を返します。 パースには時間がかかりますが、結果はキャッシュに入るので、2回目以降はパースはスキップされて速いです。

    Declaration
    public static async Task<CityModel> LoadAsync(GameObject go, string rootDirName = null, string parentPathOfRootDir = null)
    Parameters
    Type Name Description
    GameObject go

    GMLファイルの名称が、与えられたゲームオブジェクトの名称であるものをパースします。

    System.String rootDirName

    都市データが入っているディレクトリのルートの名称を指定します。 省略または空文字の場合、 go.transform.parent.name になります。

    System.String parentPathOfRootDir

    rootDirNameの親ディレクトリのパスを指定します。 省略または空文字の場合、インポート時に自動でコピーされる場所になります。 すなわち、 Assets/StreamingAssets/.PLATEAU になります。

    Returns
    Type Description
    Task<CityModel>

    パースした結果を返します。パース失敗時は null を返します。

    In This Article
    Back to top PLATEAU SDK for Unity