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

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

            ARFaceAnchor arFaceAnchor = serFaceAnchor;
            UnityARSessionNativeInterface.RunAddAnchorCallbacks(arFaceAnchor);
#endif
        }