«

»

2月 15

SS5PlayerForUnity 参照テクスチャーの差し替え

private Texture2D myTexture;
private Script_SpriteStudio_Root ss;

void Start()
{
    ss = gameObject.GetComponent();
    myTexture = Resources.Load("file_name", typeof(Texture2D)) as Texture2D;
    //指定するファイル名には拡張子を含まないように

    ss.TextureChangeTableMaterial(0,myTexture);
}

コメントを残す

メールアドレスが公開されることはありません。

次の HTMLタグおよび属性が使えます: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>