0
0

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 3 years have passed since last update.

Unity絡みのメモ

Last updated at Posted at 2020-11-30

Unity絡みでキレ散らかしたり、時間食われた内容を都度都度メモってく。

履歴

2020/12/03 1件追加。

Unityでビルドした後、VisualStudio上でのキー入力の挙動がおかしくなる

【環境】
VisualStudio 2019
Unity 2020.1.13
【状況】
ソースコード内を選択し文字入力箇所がコード内であっても、十字キーやBackSpaceキー、そしてctrl+cやctrl+sなどのショートカットキーが効かない。
(例:十字キー左を押すとなぜかソースコードの拡大率の部分の編集になる)
なお、ツール→オプション→環境→キーボード→リセットも効果なし。
【対処】
方法1.VisualStudioを一度落として再度立ち上げる。
方法2.別ソースコードが開かれている場合、編集ソースコードを切り替える。(その後元のコードに戻ると直ってる)

WebViewでpdfファイルにアクセス

UnityのWebview実装方法に関しては下のURLを見てね。
https://developers.wonderpla.net/entry/2020/06/11/102725
webViewObject.LoadURL()で呼び出すpdfのURLの前に「 https://docs.google.com/gview?embedded=true&url= 」を付ければOK。

webviewDEpdf.js
//~前略~
String pdf_url="https://hogehage.com/hage.pdf";
String gdoc_url = "https://docs.google.com/gview?embedded=true&url=";
webViewObject.LoadURL(pdf_url + gdoc_url);//こんな感じ

参考:https://stackoverflow.com/questions/2655972/how-can-i-display-a-pdf-document-into-a-webview

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?