qq_33448356 于 2016.03.31 20:02 提问

``````void search(string information)
{

for (int i = 0; i < list.Count; i++)
GameObject.Destroy((Object)list[i]);
list.Clear();

for (int i = 0; i < Remdata.Length; i++)
{
for (int j = 0; j < Remdata[i].Length; j++)
{
Regex reg = new Regex(Remdata[i][j]);

if (reg.IsMatch(information))
{

//statics = resource[i];

//GameObject gFbx1 = (GameObject)Instantiate(objs[i], new Vector3(0,0, 2),new Quaternion());
gFbx1 = (GameObject)Instantiate(Remobjs[i]);       //调用模型
//Debug.Log(gFbx1);
//GameObject gFbx1 = (GameObject)Instantiate(objs[i]);       //调用模型

switch (temp)
{
case 0: gFbx1.transform.position = new Vector3(0, 0, 2); break;
case 1: gFbx1.transform.position = new Vector3(0, 2, 2); break;
case 2: gFbx1.transform.position = new Vector3(2, 0, 2); break;
case 3: gFbx1.transform.position = new Vector3(0, 5, 2); break;
case 4: gFbx1.transform.position = new Vector3(0, 0, 5); break;
default: break;

}
temp++;

}
}
}

}
``````

3个回答

devmiao      2016.03.31 23:41
tian36315   2016.08.10 14:39

KiTok   2016.09.05 14:32

[Unity3D]如何给物体添加阴影效果

Unity中在界面上显示3D模型的方法

Unity3d教程之导入3dMax模型产生问题的解决办法
Unity3d教程之导入3dMax模型产生问题的解决办法 更新时间2013-06-29    来源：本站整理 Unity3d 导入3dMax模型会产生的问题，按照官方的说明，将max模型导成fbx档导入untiy似乎也不行？能解决吗？答案当然是肯定的，接下来小编将分享问题的解决办法。pc141-ps教程自学网(www.pc141.com) Unity3d 3.5破解版