动态生成的。如果我实例,像这样一个预制: GameObject asteroid = GameObject.Instantiate(thing2spawn);
//then set the location and some other stuff
的prefabbed小行星的碰撞完全不注册,但如果我只是将小行星拖入现场,碰撞就会按照预期进行。
我使用Unity 5.4.2f2个人,我已经写了类似如下的C#脚本: using UnityEngine;
using System;
public class Outer : MonoBehaviour {
// Some public outer fields
public class Inner : MonoBehaviour {
// Some p
我对子弹的碰撞问题敌人 我使用的子弹脚本 子弹脚本的OnCollisionEnter()方法: public class BulletScript : MonoBehaviour
{
public float TimeForDestory = 10f;
public float Speed = 0.5f;
// Use this for initialization
void Sta