Help us understand the problem. What is going on with this article?

HoloLensで使える地図アセット

More than 3 years have passed since last update.

この記事は 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

yuujii
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした