준이 되는 카메라는, 외부에서 변수 등록할 수 있게 설정
public GameObject targetObject; // 마우스 클릭에 반응할 오브젝트
void Update() {
Raycas... .mousePosition ); // subCamera시점에서 마우스 위치를 ...
// targetObject가 마우스 클릭 지점에 있는지, 클릭한 지점의 위치는 어디인지 얻는다.
if( targetObject.collider.Raycast( _cameraRay, out _hitRet, 40f ) ) {
// 3D 좌표를 저장
target.position = _hitRet.point;
// 어디를 가리키는지 선을 그어본다.
리턴값 있다. 새로 만든 서피스는 꼭 변수에 저장해야 한다.
**surface_set_target(<서피스 변수>)**
* 그리기 함수를 사용시, 이 서피스에 그리라는 함수. 사용을 마치면 반드시, surface_reset_target()으로 원래 그리는 대상(실제화면)으로 되돌려야 한다.
**surface_reset_target()**
* 그리는 화면을 원래 대로 돌린다. surface_set_target()와 같이 사용한다.
====== 그리기(드로잉) 함수 정리 ======
draw_clear_alpha
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
빌드 타겟을 확인할 수 있는 위치
**Bu
// 안드로이드용 설정
buildPlayerOptions.target = BuildTarget.Android;
buildPlayerOptions...
// 개발 플랫폼 설정
buildPlayerOptions.target = BuildTarget.iOS;
buildPlayerOptions.opt
ct 스크립트를 추가한다.
* UIDragObject 에 드래그 이동을 할 오브젝트를 Target 항목에 설정한다.
* 인스펙터에서 DebugWindow Object를 **UIDragObject**의 **Target** 항목에 추가한다.
실행 결과는, DW_Title을 클릭하면 윈도우를 이동 시킬 수