y_2.png|}}
* **MovingObject** : 이동할 오브젝트
* **Position** : 오브젝트가 이동할 경로들의 부모 오브젝트
* **1_MovPath** : ... _1.png|}}
= PathObjectIndex : **MovingObject \ Position**의 Child 오브젝트 개수를 구한다.
= : 이동할 위치 정보를 갖고 있는 Gam... 액션 |
| \\ **Get Child Count** 액션에서 GameObject에 **Position** 오브젝트를 할당. \\ ||
* **I... 이동을 시작할 것인지? |
=== 추가할 이벤트(Event) ===
* First Positioning
* Goto NextReact
FINISHED는 내장 이벤트. 현재 Sta
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
RaycastHit hit;
if( Physics.Raycast(ray... dCamera;
public Camera guiCamera;
public TweenPosition tweenPos;
public void init( string text_, Ga... mera.WorldToViewportPoint( targetObject.transform.position );
__pos = guiCamera.ViewportToWorldPoint( __pos );
__pos.z = 0f;
transform.position = __pos;
}
// Use this for initialization
v
접점의 방향. Build by the difference between a sampled position and the last sampled position.
= : (그림에는 표시가 없다.)
= Up-Vectors : 정방향의 위치
====용어====
스플라인에서 특정 부분(지점)의
<code csharp>
Vector3 _newPos = endPos.transform.position; // 이동할 좌표
HOTween.To(
gameObject.transform, // Prop()에서 position 변수를 사용할 것이기 때문에, transform 까지 적어줘야 제대로 동작한다.
0.5f,
new TweenParms().Prop("position", _newPos).OnComplete(movingCompleted) // position 속성을 사용하고,
de void OnInspectorGUI()
{
Vector3 wpos;
// World Position
EditorGUILayout.BeginHorizontal();
{
if (DrawButton("W", "Reset World Position", IsResetPositionValid(trans), 20f))
{
NGUIEditorTools.RegisterUndo("Reset World Position", trans);
trans.position = Vector3.zero;
}
wp