Unity/課金/インストールのソースを表示
←
Unity/課金/インストール
ナビゲーションに移動
検索に移動
あなたには「このページの編集」を行う権限がありません。理由は以下の通りです:
この操作は、次のグループに属する利用者のみが実行できます:
登録利用者
。
このページのソースの閲覧やコピーができます。
==マニュアル== 公式マニュアル:https://docs.unity3d.com/ja/current/Manual/UnityIAP.html ==Unityで課金サービスをONに== #unityメニュー/windows/General/Services/In-App Purchasing を選択(2019.2とかだと、Generalは省略されるかもしれない) #ONにすると、下の方にPurchasingPackageが出てくるので、そこにあるimport(googleやappleなどのプラグイン)ボタンをクリックする ==Android(Google)を使う場合== #GooglePublicKeyはGooglePlayDeveloperページの全てのアプリ/該当アプリ/収益化のセットアップ/ライセンスにRSA鍵の392文字の文字列があるので貼り付ける #unity管理画面(https://dashboard.unity3d.com/ )で各アプリ画面に入り、CurrentProject/ProjectSettingにあるIn-app purchaseのGoogleLicenseKeyにいれる。 #unityメニュー/Services/In-App Purchasing//Receipt Validation Obfuscator からGooglePublicKeyを設定すると、generated/GooglePlayTangle.csができる。 ===please enter your google public key for this application to ensure revenue numbers reflect verflect verified payments for googleはエラーが出るとき=== #GooglePublicKeyはGooglePlayDeveloperページの全てのアプリ/該当アプリ/収益化/収益化のセットアップ/ライセンスにRSA鍵の392文字の文字列があるので貼り付ける ===generated/GooglePlayTangle.csがないとエラーが出る時=== #unityメニュー/Services/In-App Purchasing/Receipt Validation Obfuscator からGooglePublicKeyを設定する ===Receipt Validation Obfuscatorが見つからないとき=== unityメニュー/Window/Unity IAP/Receipt Validation Obfuscatorを確認。 ===権限=== com.android.vending.BILLING が追加される ===GooglePlayPurchasingが見つからないエラーが出るとき=== 以下エラーが出るとき <pre> NotSupportedException: Failed to bind to native store: UnityEngine.AndroidJavaException: java.lang.ClassNotFoundException: com.unity.purchasing.googleplay.GooglePlayPurchasing </pre> unityメニュー/windows/General/Services/ In-App Purchasing からライブラリをONにしてwelcomeのところimportすると以下のファイルが追加される。 <pre> Assets/Plugins/UDP/Android/udp.aar Assets/Plugins/UDP/Android/udp.aar.meta Assets/Plugins/UDP/Android/udpsandbox.aar Assets/Plugins/UDP/Android/udpsandbox.aar.meta Assets/Plugins/UDP/Android/utils.aar Assets/Plugins/UDP/Android/utils.aar.meta Assets/Plugins/UnityPurchasing/Bin/Android/AmazonAppStore.aar Assets/Plugins/UnityPurchasing/Bin/Android/AmazonAppStore.aar.meta Assets/Plugins/UnityPurchasing/Bin/Android/CloudMoolah.aar Assets/Plugins/UnityPurchasing/Bin/Android/CloudMoolah.aar.meta Assets/Plugins/UnityPurchasing/Bin/Android/GoogleAIDL.aar Assets/Plugins/UnityPurchasing/Bin/Android/GoogleAIDL.aar.meta Assets/Plugins/UnityPurchasing/Bin/Android/GooglePlay.aar Assets/Plugins/UnityPurchasing/Bin/Android/GooglePlay.aar.meta Assets/Plugins/UnityPurchasing/Bin/Android/SamsungApps.aar Assets/Plugins/UnityPurchasing/Bin/Android/SamsungApps.aar.meta Assets/Plugins/UnityPurchasing/Bin/Android/common.aar Assets/Plugins/UnityPurchasing/Bin/Android/common.aar.meta Assets/Plugins/UnityPurchasing/Bin/Editor.dll Assets/Plugins/UnityPurchasing/Bin/Stores.dll Assets/Plugins/UnityPurchasing/ETag </pre> ==iOSを使う場合== ===iosのアプリサイズ=== 圧縮時のサイズが61.2MB から62.2MB と1MB増えてた。(demo含んでる) ==バージョンアップ== #Windows/PackageManagerを開く #左上のPackagesをUnityRegistroyへ #検索から"In App Purchasing"で検索 #"Update to ~"ボタンを押す 4.4.0から4.8.0に変更の際はIStoreListenerに以下イベントが追加されたので、以下実装を追加した。 <pre> public void OnInitializeFailed(InitializationFailureReason error, string message) { Debug.Log("UnityIAPManager OnInitializeFailed " + error.ToString() + " " + message); } </pre> ==参考== https://docs.unity3d.com/ja/current/Manual/UnityIAPSettingUp.html
Unity/課金/インストール
に戻る。
ナビゲーション メニュー
個人用ツール
ログイン
名前空間
ページ
議論
日本語
表示
閲覧
ソースを閲覧
履歴表示
その他
検索
案内
プログラムメモ
php
flutter
java
android
kotlin
ios
unity
unrealengine
javascript
mysql
sqlite
postgresql
oracle
mroonga
mongodb
flash
electron
cocos2dx
titanium
cpp
ruby
perl
python
accessメモ
rss
html
monaca
cordova
golang
blender
セキュリティ
テストツール
サーバメモ
linux
dotnet
apacheメモ
htaccessメモ
subversion
git
仮想サーバ
ansible
sendgrid
xampp
cacti
mecab
faces
flashpolicyd
fcs
jenkins
運用
デザインメモ
css
ユーザビリティ
ux
サービスメモ
twitter
facebook
instagram
mixi
セカンドライフ
通信ログ横取り
google
ustream
aws
gcp
plesk
azure
vps
AI
その他サービス
便利系メモ
SEO
モバイル
抽象変数名
DDD
クライアント
firefox
chrome
pgp
windows
mac
jmetar
Thunderbird
excel
libreoffice
vpnclient
doxygen
VisualStudioCode
fastlane
metaquest
cmsメモ
mediawiki
pukiwiki
wordpress
その他
資格
IT用語
pvを稼ぐ方法
将棋プログラム
その他
ログイン
ページ内
メインページ
最近の更新
人気のページ
問い合わせ
ツール
リンク元
関連ページの更新状況
ページ情報