<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shinya_game_app</author_name>
  <author_url>https://blog.hatena.ne.jp/shinya_game_app/</author_url>
  <blog_title>Flat Leon Works</blog_title>
  <blog_url>https://flat-leon.hatenablog.com/</blog_url>
  <categories>
    <anon>Unity</anon>
  </categories>
  <description>DOTweenによる移動は加算ではなく代入で行われるため、基本的には複数の移動を同時に行うことができません*1。例えば、Shakeしながら移動させようとすると、Shakeか移動のどちらかが打ち消されてしまい意図した通りには動きません。しかし、やり方を工夫することで複数の移動を同時に行うことができるようになります。 やり方 移動を代入ではなく加算で行うようにします。それにはDO〜系のメソッドではなくTo系のメソッドを利用する必要があります。 float time = 3f; // 同時移動できない方法( 代入による移動 ) // obj.DOMove( new Vector2( 0, 100 )…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fflat-leon.hatenablog.com%2Fentry%2Funity_dotween_multiple_move_same_time&quot; title=&quot;【Unity】DOTweenで複数の移動を同時に行う - Flat Leon Works&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-11-16 23:51:29</published>
  <title>【Unity】DOTweenで複数の移動を同時に行う</title>
  <type>rich</type>
  <url>https://flat-leon.hatenablog.com/entry/unity_dotween_multiple_move_same_time</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
