Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
2
Help us understand the problem. What is going on with this article?

More than 3 years have passed since last update.

@yuujii

HoloLensで使える地図アセット

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

2
Help us understand the problem. What is going on with this article?
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
2
Help us understand the problem. What is going on with this article?