Unity3D2Babylon.SceneBuilder.GetTextAssetPropertyValue C# (CSharp) Method

GetTextAssetPropertyValue() private method

private GetTextAssetPropertyValue ( TextAsset asset ) : object
asset UnityEngine.TextAsset
return object
        private object GetTextAssetPropertyValue(TextAsset asset)
        {
            if (asset == null) return null;
            var assetPath = AssetDatabase.GetAssetPath(asset);
            if (String.IsNullOrEmpty(assetPath)) return null;

            var assetName = Path.GetFileName(assetPath);
            var outputPath = Path.Combine(babylonScene.OutputPath, assetName);
            File.Copy(assetPath, outputPath, true);
            Dictionary<string, object> assetInfo = new Dictionary<string, object>();
            assetInfo.Add("type", asset.GetType().FullName);
            assetInfo.Add("filename", assetName);
            assetInfo.Add("embedded", false);
            assetInfo.Add("base64", null);
            return assetInfo;
        }