You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
var newViewport = new CCViewport(new CCRect(0,0, this.ContentSize.Width, this.ContentSize.Height),
CCDisplayOrientation.Portrait);
layer.Viewport = newViewport;
Exception:
{System.NullReferenceException: Object reference not set to an instance of an object
at CocosSharp.CCNode.set_Viewport (CocosSharp.CCViewport value) [0x00006] in <filename unknown>:0
at CoinTimeGame.Scenes.GameScene.ClipLayerForInputUi (CocosSharp.CCLayer layer) [0x0002e] in c:\Users\Victor\Documents\mobile-samples\CoinTime\CoinTime\Scenes\GameScene.cs:143 } System.NullReferenceException
layer is not null - the exception is occurring within the setter.
Expected result is that the exception should tell the user why this is an invalid operation, or to not throw an exception.
The text was updated successfully, but these errors were encountered:
Sample code:
Exception:
layer
is not null - the exception is occurring within the setter.Expected result is that the exception should tell the user why this is an invalid operation, or to not throw an exception.
The text was updated successfully, but these errors were encountered: