资源简介

Unity3D小DEMO源码 可直接运行。做毕业设计、课程设计或者想研究下技术的可以下载学习。需要更多资源的可以关注我。

资源截图

代码片段和文件信息

using UnityEditor;
using UnityEngine;

namespace klock.snippetz
{
    /** Class to creates a compressed file that contains a collection of assets*/
    public class AssetExport
    {
        /** Builds an asset bundle from the selected objects in the project view. Track dependencies.*/
        [MenuItem(“Assets/Build AssetBundle - Track dependencies“)]
        public static void ExportAsset()
        {
            string path = EditorUtility.SaveFilePanel(“Save object as“ ““ “object_“ “*.unity3d; *.fbx;“);
            if (path.Length != 0)
            {
                object[] selection = Selection.GetFiltered(typeof(object) SelectionMode.DeepAssets);
                BuildPipeline.BuildAssetBundle(Selection.activeobject selection path BuildAssetBundleOptions.CollectDependencies | BuildAssetBundleOptions.CompleteAssets);
                Selection.objects = selection;
            }
        }
        /** Builds an asset bundle from the selected objects in the project view. No dependency tracking. */
        [MenuItem(“Assets/Build AssetBundle - No dependency tracking“)]
        public static void ExportResourceNoTrack()
        {
            // Bring up save panel
            string path = EditorUtility.SaveFilePanel(“Save Resource“ ““ “New Resource“ “*.unity3d; *.fbx;“);
            if (path.Length != 0)
            {
                // Build the resource file from the active selection.
                BuildPipeline.BuildAssetBundle(Selection.activeobject Selection.objects path);
            }
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-08-21 16:44  Unity3D-master\
     目录           0  2013-08-21 16:44  Unity3D-master\Asset Export V.1\
     文件        1585  2013-08-21 16:44  Unity3D-master\Asset Export V.1\AssetExport.cs
     目录           0  2013-08-21 16:44  Unity3D-master\DefenderV.0.3\
     目录           0  2013-08-21 16:44  Unity3D-master\DefenderV.0.3\FONTS\
     文件       21336  2013-08-21 16:44  Unity3D-master\DefenderV.0.3\FONTS\DnK.ttf
     目录           0  2013-08-21 16:44  Unity3D-master\DefenderV.0.3\objectZ\
     文件        8132  2013-08-21 16:44  Unity3D-master\DefenderV.0.3\objectZ\Enemy.prefab
     文件        9704  2013-08-21 16:44  Unity3D-master\DefenderV.0.3\objectZ\GridQuad.prefab
     文件         393  2013-08-21 16:44  Unity3D-master\DefenderV.0.3\README.md
     目录           0  2013-08-21 16:44  Unity3D-master\DefenderV.0.3\SCENES\
     文件       19336  2013-08-21 16:44  Unity3D-master\DefenderV.0.3\SCENES\SETUP.V.0.3a.unity
     目录           0  2013-08-21 16:44  Unity3D-master\DefenderV.0.3\scriptZ\
     文件        2554  2013-08-21 16:44  Unity3D-master\DefenderV.0.3\scriptZ\BotMover2.cs
     文件         254  2013-08-21 16:44  Unity3D-master\DefenderV.0.3\scriptZ\Point.cs
     目录           0  2013-08-21 16:44  Unity3D-master\DefenderV.0.3\scriptZ\defender\
     文件         121  2013-08-21 16:44  Unity3D-master\DefenderV.0.3\scriptZ\defender\BoardPrefs.cs
     文件       10993  2013-08-21 16:44  Unity3D-master\DefenderV.0.3\scriptZ\defender\GridManager.cs
     文件        1360  2013-08-21 16:44  Unity3D-master\DefenderV.0.3\scriptZ\defender\GridboardGUI.cs
     文件        3353  2013-08-21 16:44  Unity3D-master\DefenderV.0.3\scriptZ\defender\MeshBoard.cs
     文件        2618  2013-08-21 16:44  Unity3D-master\DefenderV.0.3\scriptZ\defender\Tile.cs
     目录           0  2013-08-21 16:44  Unity3D-master\DefenderV.0.3\TEXTURE\
     文件       16913  2013-08-21 16:44  Unity3D-master\DefenderV.0.3\TEXTURE\Arrow Disable.png
     文件       17397  2013-08-21 16:44  Unity3D-master\DefenderV.0.3\TEXTURE\Arrow Normal.png
     文件       17229  2013-08-21 16:44  Unity3D-master\DefenderV.0.3\TEXTURE\Arrow Over.png
     文件     2895764  2013-08-21 16:44  Unity3D-master\DefenderV.0.3\TEXTURE\Dolar Normal.tif
     文件       46228  2013-08-21 16:44  Unity3D-master\DefenderV.0.3\TEXTURE\Dollar Disable.png
     文件       50023  2013-08-21 16:44  Unity3D-master\DefenderV.0.3\TEXTURE\Dollar Normal.png
     文件      811664  2013-08-21 16:44  Unity3D-master\DefenderV.0.3\TEXTURE\Dollar Normal.tif
     文件       49968  2013-08-21 16:44  Unity3D-master\DefenderV.0.3\TEXTURE\Dollar Over.png
     文件       20807  2013-08-21 16:44  Unity3D-master\DefenderV.0.3\TEXTURE\DollarBoard.png
............此处省略235个文件信息

评论

共有 条评论