oatingText2D.cs 를 FloatingTextLabel 라벨이 추가한다.
* TargetObject에 따라다닐 오브젝트를 추가 ( 위에서 만든, 'objTest'를 추가 )
... private Transform __t;
public bool followTarget = true;
public Vector3 defaultSize = new Vector3(1,1,1);
public GameObject targetObject;
public Camera worldCamera;
public Came... eObject gameObj_ )
{
this.text = text_;
this.target = gameObj_;
}
public void init( string text_,
준이 되는 카메라는, 외부에서 변수 등록할 수 있게 설정
public GameObject targetObject; // 마우스 클릭에 반응할 오브젝트
void Update() {
Raycas... .mousePosition ); // subCamera시점에서 마우스 위치를 ...
// targetObject가 마우스 클릭 지점에 있는지, 클릭한 지점의 위치는 어디인지 얻는다.
if( targetObject.collider.Raycast( _cameraRay, out _hitRet, 40f ) ) {
// 3D 좌표를 저장
target.position = _hitRet.point;
// 어디를 가리키는지 선을 그어본다.
e loaded because it was created for another build target that is not compatible with this platform.
Plea... make sure to build asset bundles using the build target platform that it is used by.
File's Build target is: 13
유니티 버젼: 2019.1.7f1
빌드 타겟을 확인할 수 있는 위치
**BuildTarget** 을 따라가 **UnityEditor.BuildTarget**를 보면
* 13:
리턴값 있다. 새로 만든 서피스는 꼭 변수에 저장해야 한다.
**surface_set_target(<서피스 변수>)**
* 그리기 함수를 사용시, 이 서피스에 그리라는 함수. 사용을 마치면 반드시, surface_reset_target()으로 원래 그리는 대상(실제화면)으로 되돌려야 한다.
**surface_reset_target()**
* 그리는 화면을 원래 대로 돌린다. surface_set_target()와 같이 사용한다.
====== 그리기(드로잉) 함수 정리 ======
draw_clear_alpha
트윈이 동작 되게 한다. |
| onCompleteTarget | ... |
| onUpdateTarget | ... .From()도 같은 맥락에서 사용한다.
<code csharp>
HOTween.To( <target>, <duration>, <propName>, <endValue> );
// target : tween 을 적용할 오브젝트.
// propName : tween이 적용할 변수. 오브젝트에
// 안드로이드용 설정
buildPlayerOptions.target = BuildTarget.Android;
buildPlayerOptions.options = BuildOptions.None;
//
// 안드로...
// 개발 플랫폼 설정
buildPlayerOptions.target = BuildTarget.iOS;
buildPlayerOptions.options = BuildOptions.None;
// 추가 옵션 없이 바로 빌드 고
ct 스크립트를 추가한다.
* UIDragObject 에 드래그 이동을 할 오브젝트를 Target 항목에 설정한다.
* 인스펙터에서 DebugWindow Object를 **UIDragObject**의 **Target** 항목에 추가한다.
실행 결과는, DW_Title을 클릭하면 윈도우를 이동 시킬 수