Unity3D2Babylon.SceneBuilder.GetDefaultAssetPropertyValue C# (CSharp) Method

GetDefaultAssetPropertyValue() private method

private GetDefaultAssetPropertyValue ( DefaultAsset asset ) : object
asset UnityEditor.DefaultAsset
return object
        private object GetDefaultAssetPropertyValue(DefaultAsset 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);
            return assetInfo;
        }