Video Player Can Set Skip On Drop#
Video / Video Player / Video Player Can Set Skip On Drop
Description#
Compares the Can Set Skip On Drop property of Video Player component to another value
Parameters#
| Name | Description |
|---|---|
| Video Player |
Code#
// <auto-generated>
// This script was automatically generated using the Visual Script Transpiler.
// Do not modify. Changes to this file will be lost when updating the package.
// </auto-generated>
using System;
using UnityEngine;
using VisualScript.Icons;
using UnityEngine.Video;
namespace VisualScript.Runtime
{
[Title("Video Player Can Set Skip On Drop")]
[Category("Video/Video Player/Can Set Skip On Drop")]
[Description("Compares the Can Set Skip On Drop property of Video Player component to another value")]
[Image(typeof(IconVideo), ColorTheme.Type.Blue)]
[Keywords("Movie, Film")]
[Parameter("Video Player")]
[Serializable]
public class GenConditionBool_VideoPlayer_CheckCanSetSkipOnDrop : Condition
{
[SerializeField] private GetGameObject m_VideoPlayer = new GetGameObject(
new GenTypeGameObject_VideoPlayer()
);
protected override string GetTitle(GameObject source)
{
string member = TextUtils.ThemeAsKeyword("Can Set Skip On Drop");
return $"{this.m_VideoPlayer} {member}";
}
protected override bool Run(Args args)
{
VideoPlayer component = this.m_VideoPlayer.Get<VideoPlayer>(args);
if (component == null) return false;
return component.canSetSkipOnDrop;
}
}
}