/** * Creates a new pb_Object instance with the provided vertices, faces, and sharedIndex information. */ public static pb_Object CreateInstanceWithVerticesFacesSharedIndices(Vector3[] v, pb_Face[] f, pb_IntArray[] si) { GameObject _gameObject = new GameObject(); pb_Object pb = _gameObject.AddComponent <pb_Object>(); pb.GeometryWithVerticesFacesIndices(v, f, si); pb.entity.SetEntity(EntityType.Detail); return(pb); }