Exemple #1
0
        internal static void DeleteMaterial(IntPtr materialServiceHandle, IntPtr materialHandle)
        {
            var material        = materialHandle.NativeHandleToObject <IIndoorMapMaterial>();
            var materialService = materialServiceHandle.NativeHandleToObject <IndoorMapMaterialService>();

            materialService.m_materialRepository.DeleteMaterial(material);
            NativeInteropHelpers.FreeNativeHandle(materialHandle);
        }
Exemple #2
0
        internal void Destroy()
        {
            var keys = new List <string>(m_screenTextObjects.Keys);

            foreach (string labelId in keys)
            {
                DestroyLabel(labelId);
            }

            NativeInteropHelpers.FreeNativeHandle(m_handleToSelf);
        }
Exemple #3
0
        internal static void OnTextureReceived(IntPtr requestHandle, [MarshalAs(UnmanagedType.LPStr)] string texturePath, uint textureId)
        {
            var request = requestHandle.NativeHandleToObject <StreamedTextureRequest>();

            NativeInteropHelpers.FreeNativeHandle(requestHandle);

            request.Originator.m_textureLoadHandler.Update();
            var texture = request.Originator.m_textureLoadHandler.GetTexture(textureId);

            texture.name = texturePath;

            request.Observer.OnStreamedTextureReceived(request.Material, request.TextureKey, texture);
        }
        internal void Destroy()
        {
            var keys = new List <string>(m_labelViews.Keys);

            foreach (string labelId in keys)
            {
                DestroyLabel(labelId);
            }

            if (m_spawnedCanvas && m_unityCanvas != null)
            {
                GameObject.DestroyImmediate(m_unityCanvas.gameObject);
            }

            NativeInteropHelpers.FreeNativeHandle(m_handleToSelf);
        }
 internal void Destroy()
 {
     NativeInteropHelpers.FreeNativeHandle(m_handleToSelf);
 }