1. 關於.AddDynamic
解決方法:在OnHit()函數中,新加一個參數 UPrimitiveComponent* HitComp(作為第一個參數)
2. AttachParent 過期了,應替換成AttachTo()
Sphere1->AttachParent = RootComponent;//過期了
Sphere1->AttachTo(RootComponent);
3.
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系我们删除。