This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MIT License | |
# | |
# Copyright (c) 2024 Yasuyuki Kamata | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Unity.Services.Core; | |
using Unity.Services.Mediation; | |
using UnityEngine; | |
namespace Unity.Example | |
{ | |
public class InterstitialAdExample : MonoBehaviour | |
{ | |
private IInterstitialAd _ad; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// PostBuildStep.cs | |
#if UNITY_IOS | |
using UnityEditor; | |
using UnityEditor.Callbacks; | |
using UnityEditor.iOS.Xcode; | |
using System.IO; | |
public class PostBuildStep { | |
// IDFA取得のためのトラッキング許可の説明文をセットします: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// UnityAdsSampleScript.cs | |
/// Created by Yasuyuki Kamata on 9 Feb 2021 | |
/// Copyright © 2021 Yasuyuki Kamata. Licensed under MIT License | |
using System.Collections; | |
using UnityEditor; | |
using UnityEngine; | |
using UnityEngine.Advertisements; | |
public class UnityAdsSampleScript : MonoBehaviour |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// UnityAdsExample.cs | |
/// Created by Yasuyuki Kamata on 31 Aug 2020 | |
/// Copyright © 2020 Yasuyuki Kamata. Licensed under MIT License | |
/// | |
/// <summary> | |
/// Unity Ads Example using Advertisements namespace | |
/// (Unity Ads SDK 3.4.x or later) | |
/// </summary> | |
using System; | |
using UnityEngine; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using Unity.RemoteConfig; | |
public class RemoteConfigExample : MonoBehaviour { | |
/// <summary> | |
/// Userアトリビュート用の構造体 | |
/// </summary> | |
public struct userAttributes { | |
// カスタムUserアトリビュート用の変数を宣言する | |
public bool expansionFlag; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// UnityAdsExample.cs | |
/// Created by Yasuyuki Kamata on 31 Mar 2020 | |
/// Copyright © 2020 Yasuyuki Kamata. Licensed under MIT License | |
/// | |
/// <summary> | |
/// Unity Ads Example using Advertisements namespace | |
/// (Unity Ads SDK 3.4.x or later) | |
/// </summary> | |
using UnityEngine; | |
using UnityEngine.Advertisements; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class DisableAnalyticsAtRuntime : MonoBehaviour | |
{ | |
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)] | |
public static void OnRuntimeMethodLoad() | |
{ | |
UnityEngine.Analytics.Analytics.enabled = false; | |
UnityEngine.Analytics.Analytics.deviceStatsEnabled = false; | |
UnityEngine.Analytics.Analytics.limitUserTracking = true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using UnityEngine; | |
using UnityEngine.Monetization; | |
public class MonetizationVideoExample : MonoBehaviour | |
{ | |
public bool testMode; | |
public string appleAppStoreGameId = "3289755"; | |
public string googlePlayStoreGameId = "3289754"; | |
public string placementId = "rewardedVideo"; |
NewerOlder