Init(args)
Scripting Reference
Loading...
Searching...
No Matches

◆ ValidateArguments< TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument >()

virtual void Sisus.Init.MonoBehaviourBase.ValidateArguments< TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument > ( TFirstArgument firstArgument,
TSecondArgument secondArgument,
TThirdArgument thirdArgument,
TFourthArgument fourthArgument,
TFifthArgument fifthArgument,
TSixthArgument sixthArgument,
TSeventhArgument seventhArgument,
TEighthArgument eighthArgument )
protectedvirtual

Method that can be overridden and used to validate the initialization arguments that were received by this object.

You can use the ThrowIfNull<TArgument> method to throw an ArgumentNullException if an argument is null.

protected override void ValidateArguments(IInputManager inputManager, Camera camera)
{
ThrowIfNull(inputManager);
ThrowIfNull(camera);
}

You can use the AssertNotNull<TArgument> method to log an assertion to the Console if an argument is null.

protected override void ValidateArguments(IInputManager inputManager, Camera camera)
{
AssertNotNull(inputManager);
AssertNotNull(camera);
}

Calls to this method are ignored in non-development builds.

Parameters
firstArgumentThe first received argument to validate.
secondArgumentThe second received argument to validate.
thirdArgumentThe third received argument to validate.
fourthArgumentThe fourth received argument to validate.
fifthArgumentThe fifth received argument to validate.
sixthArgumentThe sixth received argument to validate.
seventhArgumentThe seventh received argument to validate.
eighthArgumentThe eighth received argument to validate.