0
의 배열을 통해 클래스 변수에 액세스 할 수 없습니다 것은 여기 내 클래스객체 (unityscript/유니티)
public class ItemClass extends System.ValueType
{
public var itemTexture : Texture2D;
public var descriptionTexture : Texture2D;
public function ItemClass (item:Texture2D, desc:Texture2D)
{
itemTexture = item;
descriptionTexture = desc;
//GUI.DrawTexture(Rect(179, 140, 200, 202), attHighlight4);
}
}
것은 여기에 내가 itemArray에 액세스하려고하면 내 배열
var Test = new ItemClass(Axe, AxeDescription);
public var itemArray = new ArrayList();
itemArray.Add(Test);
[0]. itemTexture Unity는 itemTexture가 'Object'의 멤버가 아니라고 알려줍니다.
itemTexture에 액세스하는 구문을 찾고 있습니다.
ArrayLists
Which Kind Of Array Or Collection Should I Use?가 '객체'가 포함 :
아, 감사합니다. 저는 Javascript에 들어가는 C++ 프로그래밍입니다. C++에서 단순한 많은 것들이 조금 더 많은 작업이되고 있습니다. –