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

◆ ValidateArguments()

virtual void Sisus.Init.ScriptableObject< TFirstArgument, TSecondArgument >.ValidateArguments ( TFirstArgument firstArgument,
TSecondArgument secondArgument )
protectedvirtual

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

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

protected override void ValidateArguments(IInputManager inputManager, Camera camera)
{
ThrowIfNull(inputManager);
ThrowIfNull(camera);
}
virtual void ValidateArguments(TFirstArgument firstArgument, TSecondArgument secondArgument)
Method that can be overridden and used to validate the initialization arguments that were received by...
Definition ScriptableObjectT2.cs:355

You can use the AssertNotNull 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.