@@ -80,7 +80,7 @@ public static IPointer ProcessCameraPointer(StringSpanReader reader, BehaviourEn
8080 {
8181 var a when a . Is ( "orthographic" ) => ProcessOrthographicPointer ( reader , pointer ) ,
8282 var a when a . Is ( "perspective" ) => ProcessPerspectivePointer ( reader , pointer ) ,
83- _ => throw new InvalidOperationException ( $ "Property { reader . ToString ( ) } is unsupported at this time!" ) ,
83+ _ => PointerHelpers . InvalidPointer ( ) ,
8484 } ;
8585 }
8686
@@ -95,7 +95,7 @@ var a when a.Is("aspectRatio") => pointer.perspectiveAspectRatio,
9595 var a when a . Is ( "yfov" ) => pointer . perspectiveYFov ,
9696 var a when a . Is ( "zfar" ) => pointer . zFar ,
9797 var a when a . Is ( "znear" ) => pointer . zNear ,
98- _ => throw new InvalidOperationException ( $ "Property { reader . ToString ( ) } is unsupported at this time!" ) ,
98+ _ => PointerHelpers . InvalidPointer ( ) ,
9999 } ;
100100 }
101101
@@ -110,7 +110,7 @@ var a when a.Is("xmag") => pointer.orthographicXMag,
110110 var a when a . Is ( "ymag" ) => pointer . orthographicYMag ,
111111 var a when a . Is ( "zfar" ) => pointer . zFar ,
112112 var a when a . Is ( "znear" ) => pointer . zNear ,
113- _ => throw new InvalidOperationException ( $ "Property { reader . ToString ( ) } is unsupported at this time!" ) ,
113+ _ => PointerHelpers . InvalidPointer ( ) ,
114114 } ;
115115 }
116116 }
0 commit comments