teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

補足

2018/06/17 06:10

投稿

sakura_hana
sakura_hana

スコア11429

answer CHANGED
@@ -1,6 +1,6 @@
1
1
  割とトラップなんですが、その方法だと止まりません。(中止しているように見えて中止していない)
2
2
 
3
- `StopCoroutine("showName");`のように文字列で指定するか、
3
+ `StopCoroutine("showName");`のように文字列で指定するか(StartCoroutine側も文字列指定の必要あり)
4
4
  `Coroutine`型を渡すか、
5
5
  `IEnumerator`を一度変数に入れるか、になります。
6
6
  [StopCoroutine() is not stopping my coroutines - Unity Answers](https://answers.unity.com/questions/934490/stopcoroutine-is-not-stopping-my-coroutines.html)