資源簡介
因為視頻太大了,所以放了張圖片,如果有需要視頻自己替換圖片即可,有播放代碼會自動播放

代碼片段和文件信息
using?UnityEngine;
using?System.Collections;
public?class?NewBehaviourscript?:?MonoBehaviour?{
public?Material?aaa;
//把圖片換成視頻就能播放了
void?Start?()?{
MovieTexture?movie;
if(aaa.mainTexture?as?MovieTexture)
{movie?=?(MovieTexture)aaa.mainTexture;
movie.Play();}
}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????3730??2016-02-05?10:07??panoramicTest\Assembly-CSharp-vs.csproj
?????文件???????3730??2016-02-05?10:07??panoramicTest\Assembly-CSharp.csproj
?????文件?????187004??2016-02-05?10:12??panoramicTest\Assets\img.jpg
????..A..H.??????1162??2016-02-05?10:12??panoramicTest\Assets\img.jpg.me
????I.A....?????14300??2016-02-05?10:17??panoramicTest\Assets\main.unity
????..A..H.???????174??2016-02-05?09:20??panoramicTest\Assets\main.unity.me
????I.A....??????4972??2016-02-05?10:16??panoramicTest\Assets\New?Material.mat
????..A..H.???????179??2016-02-05?08:47??panoramicTest\Assets\New?Material.mat.me
?????文件????????303??2016-02-05?10:15??panoramicTest\Assets\NewBehavioursc
????..A..H.???????262??2016-02-05?08:55??panoramicTest\Assets\NewBehavioursc
?????文件????????152??2016-02-05?10:04??panoramicTest\Assets\NewShader.shader
????..A..H.???????195??2016-02-05?09:42??panoramicTest\Assets\NewShader.shader.me
????I.A....?????13068??2016-02-05?09:09??panoramicTest\Assets\sss.unity
????..A..H.???????174??2016-02-05?09:09??panoramicTest\Assets\sss.unity.me
????I.A....??????4120??2016-02-05?10:16??panoramicTest\Library\AnnotationManager
????I.A....????982540??2016-02-05?10:17??panoramicTest\Library\assetDataba
????I.A....?????????6??2016-02-05?10:17??panoramicTest\Library\AssetImportState
????I.A....??????4756??2016-02-05?10:17??panoramicTest\Library\AssetServerCacheV3
????I.A....?????????0??2016-02-05?10:16??panoramicTest\Library\BuildPla
????I.A....??????4124??2016-02-05?10:16??panoramicTest\Library\BuildSettings.asset
????I.A....?????40592??2016-02-05?10:17??panoramicTest\Library\CurrentLayout.dwlt
????I.A....??????4200??2016-02-05?10:16??panoramicTest\Library\EditorUserBuildSettings.asset
????I.A....??????4144??2016-02-05?10:16??panoramicTest\Library\EditorUserSettings.asset
????I.A....??????4128??2016-02-05?10:17??panoramicTest\Library\expandedItems
????I.A....??????4352??2016-02-05?10:17??panoramicTest\Library\guidmapper
????I.A....??????4104??2016-02-05?10:16??panoramicTest\Library\InspectorExpandedItems.asset
????I.A....????????65??2016-02-05?10:16??panoramicTest\Library\LibraryFormatVersion.txt
????I.A....??????4285??2016-02-05?10:16??panoramicTest\Library\me
????I.A....???????478??2016-02-05?10:16??panoramicTest\Library\me
????I.A....??????4321??2016-02-05?10:16??panoramicTest\Library\me
............此處省略339個文件信息
- 上一篇:u3d基于高度漸變色材質
- 下一篇:IEEE30節(jié)點參數
評論
共有 條評論