UnityEngine.Object.CheckNullArgument C# (CSharp) Method

CheckNullArgument() private static method

private static CheckNullArgument ( System arg, string message ) : void
arg System
message string
return void
		private static void CheckNullArgument(System.Object arg, string message){}
		public static void Destroy(System.Object obj, float t){}

Usage Example

コード例 #1
0
 public static Object Instantiate(Object original, Transform parent, bool worldPositionStays)
 {
     if (parent == null)
     {
         return(Object.Internal_CloneSingle(original));
     }
     Object.CheckNullArgument(original, "The Object you want to instantiate is null.");
     return(Object.Internal_CloneSingleWithParent(original, parent, worldPositionStays));
 }
All Usage Examples Of UnityEngine.Object::CheckNullArgument