Unity3D 유니티3D - 이미지 파일 불러온후 텍스쳐에 넣기


Java

var tDynamicTx : Texture2D ;
var tLoad :WWW ;
var images : String ;
images = "file://"+ Application.dataPath +"Test.jpg";
tLoad= new WWW(images);
tDynamicTx= new Texture2D(64, 64);
tLoad.LoadImageIntoTexture(tDynamicTx);


C#


public Texture2D tDynamicTx;
public WWW tLoad;
public string images;
images = "file://"+ Application.dataPath +"Test.jpg";
tLoad= new WWW(images);
tDynamicTx= new Texture2D(64, 64);
tLoad.LoadImageIntoTexture(tDynamicTx);

출처 -  Http;//answers.unity3d.com


(http://answers.unity3d.com/questions/263177/www-problem-get-image-.html?sort=oldest)

댓글

가장 많이 본 글