默认页面
<p><img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=a5d0fa0f4c94d98ce443b42b2565f5e2&file=file.png" alt="" /></p>
<p>GuideMovePingpone ,AutoMovePingpone</p>
<h3>引导-路径来回快速移动</h3>
<pre><code class="language-csharp">//注意:需要元器件首先配置对齐交互
{
/// <param name="sourceElementGuid">自身元器件</param>
/// <param name="targetElementGuid">目标元器件</param>
/// <param name="sourceType">配置文件中交互type</param>
/// <param name="targetType">配置文件中交互type</param>
///GuideMoveToTargetEle(string sourceElementGuid, string targetElementGuid, Vector3 rot, Vector3 fromPos, Vector3 toPos, float time, string text,string path = "")
var action = new GuidePathMoveAction("XiaoDaoElement", "NaElement", "diqiu3dSlice", "Na");
Append(action);
}</code></pre>
<p><img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=9b8d538090d83cd586e765a49326e419&file=file.png" alt="" /></p>
<h3>挥动</h3>
<pre><code class="language-csharp">{
string Element_0 = "MuTiaoElement";
int Loops_0 = 2;
var action = PerformActionFactory.Instance.CreateSwingAction(Element_0, Loops_0);
Append(action);
}</code></pre>
<h3>GuideMoveToTargetEle</h3>
<h4>参数</h4>
<pre><code class="language-csharp">{
/// <param name="sourceElementGuid">自身元器件</param>
/// <param name="targetElementGuid">目标元器件</param>
/// <param name="rot">虚影角度</param>
/// <param name="fromPos">虚影起始位置-使用本地坐标(以目标元器件中心点为基点)</param>
/// <param name="toPos">虚影终止位置-使用本地坐标(以目标元器件中心点为基点)</param>
/// <param name="time">虚影运动时间</param>
/// <param text="text">文本名称</param>
/// <param path="path">虚影对象路径,默认空的话为元器件根节点</param>
///GuideMoveToTargetEle(string sourceElementGuid, string targetElementGuid, Vector3 rot, Vector3 fromPos, Vector3 toPos, float time, string text,string path = "")
}</code></pre>
<h4>属性</h4>
<h4>使用样例</h4>
<pre><code class="language-csharp"> var action = new GuideMoveToTargetEle("NieZiElement", "GuangKouPingElement", new Vector3(0,0,90), new Vector3(0, 0.1f, 0), new Vector3(0.1f, 0.02f, 0), 1.5f,"触碰即可夹取");
Append(action);</code></pre>
<p><img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=f4b2f145965c1ed176893c2760a5285d" alt="" />
//fromPos和toPos使用的是本地坐标。以目标元器件中心点为基点。如上图所示广口瓶中心点在底部,new Vector3(0,0.1f,0)表示起始点广口瓶上方一点位置,new Vector3(0.1f, 0.02f, 0)表示广口瓶右下方。
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=e44886da8089e36eb86ec4af50d7202c" alt="" />
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=68e6be75636819350d973b55ebf600ab" alt="" /></p>