facebook twitter hatena line email

Unity/GoogleMobileAds/広告配信の制限

提供: 初心者エンジニアの簡易メモ
移動: 案内検索

サイトの仕様: ナビゲーション対策

ボタンを無効化してた場合は、押しても、反応しないボタンと判断される。

ボタン無効化じゃダメ

GameObject.Find("Button1").GetComponent<Button>().enabled = false;

ボタンはコンポーネントごと削除するように。

Destroy(GameObject.Find("Button1").GetComponent<Button>());
GameObject.Find("Button1").GetComponent<Image>().sprite = null;
GameObject.Find("Button1").GetComponent<Image>().color = new Color(0.9f, 0.9f, 0.9f, 1f);

2023/11時点では、スクリーンショットがついてくる

参考:https://g-llc.co.jp/blog/programming017/