黄金民的个人文档

黄金民的个人文档


默认页面

<p><img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=a5d0fa0f4c94d98ce443b42b2565f5e2&amp;file=file.png" alt="" /></p> <p>GuideMovePingpone ,AutoMovePingpone</p> <h3>引导-路径来回快速移动</h3> <pre><code class="language-csharp">//注意:需要元器件首先配置对齐交互 { /// &lt;param name="sourceElementGuid"&gt;自身元器件&lt;/param&gt; /// &lt;param name="targetElementGuid"&gt;目标元器件&lt;/param&gt; /// &lt;param name="sourceType"&gt;配置文件中交互type&lt;/param&gt; /// &lt;param name="targetType"&gt;配置文件中交互type&lt;/param&gt; ///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&amp;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">{ /// &lt;param name="sourceElementGuid"&gt;自身元器件&lt;/param&gt; /// &lt;param name="targetElementGuid"&gt;目标元器件&lt;/param&gt; /// &lt;param name="rot"&gt;虚影角度&lt;/param&gt; /// &lt;param name="fromPos"&gt;虚影起始位置-使用本地坐标(以目标元器件中心点为基点)&lt;/param&gt; /// &lt;param name="toPos"&gt;虚影终止位置-使用本地坐标(以目标元器件中心点为基点)&lt;/param&gt; /// &lt;param name="time"&gt;虚影运动时间&lt;/param&gt; /// &lt;param text="text"&gt;文本名称&lt;/param&gt; /// &lt;param path="path"&gt;虚影对象路径,默认空的话为元器件根节点&lt;/param&gt; ///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>

页面列表

ITEM_HTML