Archive for the ‘unity’ Category

 

unity : googleplaygames を iOS で使わない。

5月 10th, 2016

androidのランキングにgoogleplaygamesを使うけどiosでは使わないとき。 Player Settings > Other Settings > Configuration Scripting Define Symbols に NO_GPGS を入力。 –

Read full article | コメントは受け付けていません。

unity : admob入れる unity 5.3.4

3月 22nd, 2016

Google Mobile Ads Unity Plugin [https://github.com/googleads/googleads-mobile-unity] version 3.0.3を入れてみます。 Document [https://developers.google.com/admob/android/games#unity] Google Play Service : androidの更新ツールで更新。 Google Mobile Ads SDK ( iOS v7.7.0 https://developers.google.com/admob/ios/download?hl=ja#downloadios === Plugins/iOS にgooglemobileads.frameworkを入れるだけでした。 inspectorでiOSにチェックが入っていればOK === 以下は間違いでした-.-; === * googlemobileads.frameworkをxcodeに入れる時は Add Files to Unity-iPhoneから、入れるとコードも入ってlibraryにも反映されます。 x 直接 Build Phasesのところに入れるとコピーされないので、ダメなようです。 @import GoogleMobileAds; コピーできていないとここでエラーになりました。 さらに、これを毎回エラーになったので何かなと Build Settings -> Search Paths -> Framework Search Paths にgooglemobileads.frameworkを置いてあるpathを入れたら大丈夫でした! $(SRCROOT)/myframeworks […]

Read full article | コメントは受け付けていません。

unity : unityads / unity 5.3.3

3月 17th, 2016

unity 5.3.3にunityAdsを入れてみました! Asset Storeのものは 4対応なので、 5.2以降では http://unityads.unity3d.com/help/monetization/getting-started Using the Services Window (available in Unity 5.2 and Later) http://unityads.unity3d.com/help/monetization/integration-guide-unity#using-the-services-window に沿ってやるだけで簡単にできました。 1点サンプルなどで if (Advertisement.IsReady(“rewardedVideoZone”)) のrewardedVideoZoneはデフォルトではrewardedVideoになっています。 また zone というのは サイト上では INTEGRATION ID のことのようでした!

Read full article | コメントは受け付けていません。

unity : OnLevelWasLoadedが呼ばれない?

7月 21st, 2015

NetworkManagerを継承して、オリジナルを作るところで Awake OnEnable Start は呼ばれますが、OnLevelWasLoadedが呼ばれない。 なぜでしょう? とりあえず、初回は Startの中で自分で呼んでみます。 OnLevelWasLoaded (Application.loadedLevel); どうかな? 今度は、NetworkManager.singletonがnullに・・・ Awakeが呼ばれるのを確認したので、それを削除したら大丈夫でした。 ということで無事?なんとなくネットワーク対戦開始しました。

Read full article | コメントは受け付けていません。

unity 5.1 : unet で マルチプレイヤー : StartServer Listen failed

7月 3rd, 2015

stopしてから再度実行すると StartServer Listen failedで開始されない。 http://forum.unity3d.com/threads/startserver-listen-failed.334566/ http://unity3d.com/jp/unity/qa/patch-releases/5.1.1p2 で修正されているらしいです。

Read full article | コメントは受け付けていません。

unity : iOS admob conversion tracking

4月 12th, 2015

[https://developers.google.com/app-conversion-tracking/docs/ios/using-sdk] とadmobに広告を出してコンバージョンを見てみたいので入れてみます。 UnityAppController.mmに #import “ACTReporter.h” didFinishLaunchingWithOptionsのreturnの前に [ACTConversionReporter reportWithConversionID:@"999999999" label:@"xxxxxxxxxx" value:@"0.00" isRepeatable:NO]; を入れて 実行するとこんなのを 2015-04-13 03:48:45.867[233:29019] ACTConversionIDReporter: sending ping: https://www.googleadservices.com/pagead/conversion/…… 送るようになりました・・・毎回送るのかな?・・・

Read full article | コメントは受け付けていません。

iOS , unity | iphonesimulator not found unity

3月 23rd, 2015

久しぶりにシミュレータで動かそうとしたらエラーで。 http://stackoverflow.com/questions/25088252/xcode-error-creating-lldb-target この辺かと思ったら少し違う? Base SDK iphonesimulator sdk not found まったくわからあない http://forum.unity3d.com/threads/ios8-xcode6-compatibility.249533/page-2#post-1769753 とりあえず4.6.x ?で5.0は大丈夫そう?

Read full article | コメントは受け付けていません。

unity : admob mediation

1月 13th, 2015

JAVA 7を入れないとダメだったようで。 http://docs.oracle.com/javase/7/docs/webnotes/install/mac/mac-jdk.html http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html mac 64bit用 dmgをダウンロード インストールして、java_homeをチェック変更する $ /usr/libexec/java_home -v 1.7 /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home $ java -version java version “1.7.0_71″ Java(TM) SE Runtime Environment (build 1.7.0_71-b14) Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode) android sdkは21以上で。 android 5対応だそうで http://answers.unity3d.com/questions/858978/android-freeze-on-load-black-screen-with-title.html black screenで止まる問題は、 4.6.1p2で修正された模様 http://unity3d.com/unity/qa/patch-releases/4.6.1p3 を入れる。 問題なく起動できました。 ddmsでみると 01-13 13:59:15.087: I/Ads(5370): Instantiating mediation adapter: com.google.ads.mediation.nend.NendAdapter のようにnend adapterが呼ばれているようです。 […]

Read full article | コメントは受け付けていません。

iOS : アプリ申請時のIDFAや権利関連の質問メモ

10月 24th, 2014

一通りデータを入れて、バイナリーもアップロード完了後。 submitする際の質問になります。 admobを利用している場合ですが、結果を保証するわけではございませんのでご了承ください。 Third party content ・サードパーティコンテンツを利用しているか ・権利はあるのか の両方チェックしています。広告内のデータかなと。 IDFA ・Serve advertisements within the app ・Attribute this app installation to a previously served advertisement ・Attribute an action taken within this app to a previously served advertisement – ・確認 の4つのチェックボックスがありますが、 自分の経験としては、4つチェックしても、1つめと4つめでもOKでした。 出稿したらコンバージョンをとれるので、2,3番目のもチェックしておいた方が良いのかな?と思いますが チェックしなくても通っているようです。

Read full article | コメントは受け付けていません。

unity : waitforsecondsが動かない時

10月 21st, 2014

ちょっと IEnumerator Example() { print(Time.time); yield return new WaitForSeconds(5); print(Time.time); } がなぜか動かない・・・ WaitForEndOfFrame は問題なく動く なんでかな・・・と思っていたら停止処理で Time.timeScale = 0; としていたので動かなかった。 待ちのときだけ timeScale を1に戻して。 WaiteForSeconds(1); の後に timeScale を 0に戻した。 ゲーム中のポーズではこれは使えないけど・・・終了後の得点表示なので今回はこれで。

Read full article | コメントは受け付けていません。