Many article says how to get a angle by Atan2.
that was to explain how to get a angle on Vector2. and not consider Transform forward.

Solution 1. Using Atan2 correctly

Vector3 delta = t.position - transform.position;

float angle = (Mathf.Atan2(transform.forward.x, transform.forward.z) - Mathf.Atan2(delta.x, delta.z)) * Mathf.Rad2Deg;
if (angle >= 360f)
    Debug.Log(angle - 360f);
} else if (angle <= 0f )
    Debug.Log(360f + angle);
} else 

Solution 2. Using Quaternion
Debug.Log(Quaternion.FromToRotation(transform.forward, t.position - transform.position).eulerAngles.y);

Solution 3. Using SignedAngle
Debug.Log(Vector3.SignedAngle(transform.forward, delta, Vector3.up));

2019/05/02 17:05 2019/05/02 17:05

Now We just run the test using Menu in Unity3D.

사용자 삽입 이미지

If you didn't get any error, Push your code any VCS (This Article based P4V)

I. Basic Information : your mind
II. Source Code Management
사용자 삽입 이미지
1. Add Perforce Credentials
2. Select node type (We use the Streams)
3. Select Stream codeline (Path)
4. Type Workspace name format 
5. (Important) populate is just Sync only
   - Check Force sync / Populate have list / Quiet perforce messageIII. 
6. input "Perforce Depot path" in Polling build filters.

III. Build Triggers 
사용자 삽입 이미지

1. Build periodically: H 07 * * 1-5 (by 7 am on every Mon~Fri)

IV. Build : Unity
사용자 삽입 이미지
1. Select Unity version and commandline : -quit -batchmode -projectPath ${WORKSPACE}/Prototype/SCM  -executeMethod ProjectBuilder.PerformiOSBuild

V. Build: XCODE (General)
사용자 삽입 이미지
* Important: Output directory

VI. Build: XCODE Code signing
사용자 삽입 이미지

VII. Build : Advanced Xcode
사용자 삽입 이미지

VIII. Build Execute shell

사용자 삽입 이미지

rm -rf ${WORKSPACE}/Prototype/SCM/$(date +'%m%d%y')_build
mkdir ${WORKSPACE}/Prototype/SCM/$(date +'%m%d%y')_build
cp ${WORKSPACE}/Prototype/SCM/*.ipa ${WORKSPACE}/Prototype/SCM/$(date +'%m%d%y')_build/$(date +'%m%d%y%H%M').ipa
cp -rf ${WORKSPACE}/Prototype/SCM/$(date +'%m%d%y')_build /Volumes/CorgiMobile/
rm -rf ${WORKSPACE}/Prototype/SCM/$(date +'%m%d%y')_build

Done Jenkins setup!

Now, Build your source code on Jenkins.

If you see the Xcode Error, Please open Xcode and open the built code from Unity.
You could fix your problem on XCODE. (Before testing on Xcode, Should click the "Clean")

If you get the success on XCODE. Please save the project and try to build on Jenkins.

* Don't remove or update the project files.


2018/05/23 08:38 2018/05/23 08:38
No more support to set up the focus mode on Vuforia 7 directly.

However, If you add this code to your AR camera, you could change that by your mind.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Vuforia;

public class CameraFocusController : MonoBehaviour {

bool mVuforiaStarted = false;

// Use this for initialization
void Start () {
VuforiaARController vuforia = VuforiaARController.Instance;
if (vuforia != null) vuforia.RegisterVuforiaStartedCallback(StartAfterVuforia);
void StartAfterVuforia() {
mVuforiaStarted = true;

void SetAutofocus() {

void OnApplicationPause(bool pauseStatus)
if (!pauseStatus) SetAutofocus();

2018/05/15 03:43 2018/05/15 03:43