UnityEngine.Experimental.Director.Playable.CheckPlayableValidity C# (CSharp) Method

CheckPlayableValidity() static private method

static private CheckPlayableValidity ( Playable playable, string name ) : bool
playable Playable
name string
return bool
        internal static bool CheckPlayableValidity(Playable playable, string name)
        {
            if (playable == null)
            {
                throw new NullReferenceException("Playable " + name + "is null");
            }
            return true;
        }

Usage Example

Ejemplo n.º 1
0
 /// <summary>
 ///   <para>Disconnects an input from a Playable.</para>
 /// </summary>
 /// <param name="right">Playable from which the input will be disconnected.</param>
 /// <param name="inputPort">Index of the input to disconnect.</param>
 /// <param name="target"></param>
 public static void Disconnect(Playable target, int inputPort)
 {
     if (!Playable.CheckPlayableValidity(target, "target") || !target.CheckInputBounds(inputPort))
     {
         return;
     }
     Playable.DisconnectInternal(target, inputPort);
 }
All Usage Examples Of UnityEngine.Experimental.Director.Playable::CheckPlayableValidity