質問編集履歴
3
確認した内容を追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -12,5 +12,13 @@
|
|
12
12
|
10.0f
|
13
13
|
);
|
14
14
|
```
|
15
|
-
しかしImageは
|
15
|
+
しかしImageは一度変形し、そのまま止まってしまいました。
|
16
|
+
想定ではDOShakeScaleの影響で10秒間大きさが変化し続けるものだと考えておりました。
|
17
|
+
また、DOShakeScaleをDOMoveに変更し、以下のように記述したところ、1秒間動くようなことは無く、開始直後の一瞬だけ初期位置からわずかに移動してそのままとまったきりになってしまいました。
|
18
|
+
```
|
19
|
+
GameObject.Find ("GameOverImage1").GetComponent<RectTransform> ().DOMove (
|
20
|
+
Vector3.one,
|
21
|
+
1.0f
|
22
|
+
);
|
23
|
+
```
|
16
24
|
根本的な使い方が誤っているのでしょうか。
|
2
タグにUnityを追加
title
CHANGED
File without changes
|
body
CHANGED
File without changes
|
1
DOTween.Init を追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
### 試したこと
|
5
5
|
あるゲームオブジェクトから以下のようなコードを実行しました
|
6
6
|
```
|
7
|
+
DOTween.Init ();
|
7
8
|
GameObject g = Instantiate(gameOverCanvasPrefab, new Vector2(0, 0), Quaternion.identity);
|
8
9
|
//GameOverImage1はgameOverCanvasPrefabの孫として存在するImage
|
9
10
|
GameObject.Find ("GameOverImage1").GetComponent<RectTransform> ()
|