資源簡介
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\ob
?????文件????????8132??2013-08-21?16:44??Unity3D-master\DefenderV.0.3\ob
?????文件????????9704??2013-08-21?16:44??Unity3D-master\DefenderV.0.3\ob
?????文件?????????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\sc
?????文件????????2554??2013-08-21?16:44??Unity3D-master\DefenderV.0.3\sc
?????文件?????????254??2013-08-21?16:44??Unity3D-master\DefenderV.0.3\sc
?????目錄???????????0??2013-08-21?16:44??Unity3D-master\DefenderV.0.3\sc
?????文件?????????121??2013-08-21?16:44??Unity3D-master\DefenderV.0.3\sc
?????文件???????10993??2013-08-21?16:44??Unity3D-master\DefenderV.0.3\sc
?????文件????????1360??2013-08-21?16:44??Unity3D-master\DefenderV.0.3\sc
?????文件????????3353??2013-08-21?16:44??Unity3D-master\DefenderV.0.3\sc
?????文件????????2618??2013-08-21?16:44??Unity3D-master\DefenderV.0.3\sc
?????目錄???????????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個文件信息
- 上一篇:Qt插件開發源碼
- 下一篇:畢業設計管理系統(畢業設計)
評論
共有 條評論