Warning: Declaration of action_plugin_linebreak::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /home/stepism/www/ue4/wiki/lib/plugins/linebreak/action.php on line 41

Warning: Declaration of action_plugin_markdownextra::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /home/stepism/www/ue4/wiki/lib/plugins/markdownextra/action.php on line 16

Warning: Declaration of action_plugin_syntaxhighlighter3_action::register(Doku_Event_Handler &$controller) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /home/stepism/www/ue4/wiki/lib/plugins/syntaxhighlighter3/action/action.php on line 28

Warning: Cannot modify header information - headers already sent by (output started at /home/stepism/www/ue4/wiki/lib/plugins/linebreak/action.php:0) in /home/stepism/www/ue4/wiki/inc/auth.php on line 430

Warning: Cannot modify header information - headers already sent by (output started at /home/stepism/www/ue4/wiki/lib/plugins/linebreak/action.php:0) in /home/stepism/www/ue4/wiki/inc/actions.php on line 38

Warning: Cannot modify header information - headers already sent by (output started at /home/stepism/www/ue4/wiki/lib/plugins/linebreak/action.php:0) in /home/stepism/www/ue4/wiki/lib/tpl/dokuwiki/main.php on line 12
010 for文の使い方(4.10) [stepism@UE4メモ]

ユーザ用ツール

サイト用ツール


wiki:tips:010

差分

この文書の現在のバージョンと選択したバージョンの差分を表示します。

この比較画面にリンクする

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
wiki:tips:010 [2016/03/13 10:30]
step
wiki:tips:010 [2016/03/14 22:48] (現在)
step
ライン 1: ライン 1:
-====== 010 For文の使い方 ======+====== 010 for文の使い方(4.10) ​======
  
 ===== 概要 ===== ===== 概要 =====
 ForLoopノードを使って複数のアクターを異なった座標にスポーンします。 ForLoopノードを使って複数のアクターを異なった座標にスポーンします。
  
 +----
  
 +
 +
 +==== ForLoop ====
 {{:​wiki:​tips:​2016031301.png|}} {{:​wiki:​tips:​2016031301.png|}}
  
 ForLoopノードはIndex指定のFor文で、First IndexからLastIndexまでループします。LoopBodyの先にループ中の処理を記述します。Indexは現在のインデックスになっていて、ループが終了するとCompletedに処理が流れます。 ForLoopノードはIndex指定のFor文で、First IndexからLastIndexまでループします。LoopBodyの先にループ中の処理を記述します。Indexは現在のインデックスになっていて、ループが終了するとCompletedに処理が流れます。
 +
 +
 +==== ForEachLoop ====
 +
 +{{:​wiki:​tips:​2016031303.png|}}
 +Indexの指定が0から始まって配列の要素数だけ繰り返すと決まっている場合は、ForEachLoop で書いた方がスッキリします。
 +
wiki/tips/010.1457865002.txt.gz · 最終更新: 2016/03/13 10:30 by step