From 683b88f1906befc98c1e3ea30cfb2afd69c49cd1 Mon Sep 17 00:00:00 2001 From: homuler Date: Sun, 31 Jan 2021 13:52:25 +0900 Subject: [PATCH] fix: add missing attributes --- .../Examples/Scripts/ResourceManager/LocalAssetManager.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Assets/MediaPipe/Examples/Scripts/ResourceManager/LocalAssetManager.cs b/Assets/MediaPipe/Examples/Scripts/ResourceManager/LocalAssetManager.cs index 2fe552449..3b2d7c6e4 100644 --- a/Assets/MediaPipe/Examples/Scripts/ResourceManager/LocalAssetManager.cs +++ b/Assets/MediaPipe/Examples/Scripts/ResourceManager/LocalAssetManager.cs @@ -28,6 +28,7 @@ public async Task LoadAllAssetsAsync() { await Task.CompletedTask; } + [AOT.MonoPInvokeCallback(typeof(CacheFilePathResolver))] static string CacheFileFromAsset(string assetPath) { var assetName = GetAssetName(assetPath); var localPath = GetLocalFilePath(assetName); @@ -39,6 +40,7 @@ static string CacheFileFromAsset(string assetPath) { return null; } + [AOT.MonoPInvokeCallback(typeof(ReadFileHandler))] static bool ReadFile(string path, IntPtr dst) { try { Debug.Log(path);