Example #1
0
        void UpdatePlaneAnchor(MessageEventArgs mea)
        {
            serializableUnityARPlaneAnchor serPlaneAnchor = mea.data.Deserialize <serializableUnityARPlaneAnchor> ();
            ARPlaneAnchor arPlaneAnchor = serPlaneAnchor;

            UnityARSessionNativeInterface.RunUpdateAnchorCallbacks(arPlaneAnchor);
        }
Example #2
0
        void UpdateFaceAnchor(MessageEventArgs mea)
        {
#if UNITY_IOS
            serializableUnityARFaceAnchor serFaceAnchor = mea.data.Deserialize <serializableUnityARFaceAnchor> ();

            ARFaceAnchor arFaceAnchor = serFaceAnchor;
            UnityARSessionNativeInterface.RunUpdateAnchorCallbacks(arFaceAnchor);
#endif
        }
Example #3
0
        void UpdateFaceAnchor(MessageEventArgs mea)
        {
#if UNITY_EDITOR
            if (UnityEditor.EditorApplication.isPaused)
            {
                return;
            }
#endif
            serializableUnityARFaceAnchor serFaceAnchor = mea.data.Deserialize <serializableUnityARFaceAnchor> ();

            ARFaceAnchor arFaceAnchor = serFaceAnchor;
            UnityARSessionNativeInterface.RunUpdateAnchorCallbacks(arFaceAnchor);
        }