1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

HoloLensで使える地図アセット

Posted at

この記事は Unity Assets Advent Calendar 2016 22日目の記事になります。

大量にあるUnity Asset Storeの地図アセットから現在唯一HoloLensで動いたアセットを紹介します。

Online Maps 2.5.1 (Dec 22, 2016)

image

サンプルのデモシーンをHoloLensに対応する

  • Main CameraをHoloLensに対応
  • Holographic Remoting PlayerでMapオブジェクトの位置合わせ

image

  • 地図のタイルデータをネットから取得するため、PlayerSettingsのCapabilitiesでInternetClientをON
    image

  • 最初に表示する地域の指定
    image

Buildエラーの対応

error CS0266: Cannot implicitly convert type 'System.Collections.Generic.IEnumerable<System.Reflection.FieldInfo>' to 'System.Reflection.FieldInfo[]'. An explicit conversion exists (are you missing a cast?)

FieldInfo[] fields = type.GetFields(BindingFlags.Instance | BindingFlags.Public);

↓

FieldInfo[] fields = (FieldInfo[]) type.GetFields(BindingFlags.Instance | BindingFlags.Public);

完成

image

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?