-1
我有在这条线在我的代码一个NullReferenceException错误:“的NullReferenceException是未处理”在C#中
public bool BoundingVolumeIsInView(BoundingSphere sphere)
{
**return (Frustum.Contains(sphere) != ContainmentType.Disjoint);**
}
请告诉我什么,我做错了什么?
感谢
是'sphere',或'Frustum'可能为空。 – CodesInChaos
我觉得'Frustrum'是'null'。 – ja72