1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Resources.Load怖い

Last updated at Posted at 2016-04-19

簡潔に書きます。

Assets/Resources/の直下に「aaaa.txt」というファイルがあった時に

sample.cs
void HogeHoge()
{
    TextAsset text = Resources.Load<TextAsset>("aaaa");
}

void HogeHoge1()
{
    TextAsset text = Resources.Load<TextAsset>("AAAA");
}

void HogeHoge2()
{
    TextAsset text = Resources.Load<TextAsset>("AAAa");
}

void HogeHoge3()
{
    TextAsset text = Resources.Load<TextAsset>("AAaa");
}

void HogeHoge4()
{
    TextAsset text = Resources.Load<TextAsset>("Aaaa");
}

void HogeHoge5()
{
    TextAsset text = Resources.Load<TextAsset>("aaaA");
}

void HogeHoge6()
{
    TextAsset text = Resources.Load<TextAsset>("aaAA");
}

void HogeHoge7()
{
    TextAsset text = Resources.Load<TextAsset>("aAAA");
}

全部「aaaa.txt」を取得します。
以上。

2017.01.06追記
凄い今さらですが、上記はUnityEditor上での動作です。

1
1
3

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?