How to texture2D

HI.

By creating a 3D object in the Script, I want to paste the texture of the inside but it does not go well.
Source …

plane = GameObject.CreatePrimitive (PrimitiveType.Plane);
plane.transform.position = new Vector3 (0, 0.1f,-0.1f);
plane.transform.eulerAngles = new Vector3 (0, 0, 0);
texture = Resources.Load (Application.streamingAssetsPath + “/ telop_02.png”) as Texture2D;
plane.renderer.material.mainTexture = texture;

Please tell me if I wrong somewhere.

In case you haven’t fixed it yourself yet:

texture = Resources.Load(Application.streamingAssetsPath + "/telop_02") as Texture2D;

Make sure there is no space between / and telop_02 and the .png should also not be there.

Tell me if it’s still not working :wink:

Thank you.

It was that Mai s great help to me.