Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ardieffects:stretchbetween [2018/07/04 00:53]
optrix created
ardieffects:stretchbetween [2018/07/04 01:14] (current)
optrix [Examples]
Line 36: Line 36:
  
 ====Examples==== ====Examples====
 +
 +<​code>​
 +<​stretchbetween origin="​WallA"​ target="​WallB"​ />
 +</​code>​
 +
 +> The above code will find the two assets in the scene named **WallA** and **WallB**. It will then place the asset containing this behaviour in between the WallA and WallB and stretch it to fill the gap between them.
 +
 +<​code>​
 +<​stretchbetween origin="​FenceStartPoint"​ target="​FenceEndPoint"​ originoffset="​0,​5,​0"​ targetoffset="​0,​5,​0"/>​
 +</​code>​
 +
 +> In this example we are using two empty assets that are aligned on the ground named **FenceStartPoint** and **FenceEndPoint** respectively. In order to show the fence positioned above ground, the origin and target offset values are set to **0,5,0** to shift the stretched fence asset 5 units upwards on the Y axis.