Documentation index for AI agents (llms.txt) A Markdown version of every page is available: request the page's source under /docs/, follow the "alternate" link in this page's head, or start from /llms.txt.
Visual Script logo Manual

Video Player Send Frame Ready Events#

Video / Video Player / Video Player Send Frame Ready Events

  • Can Read

  • Can Write

Description#

The Send Frame Ready Events property of the Video Player component

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
{
    [Get]
    [Set]
    
    [Title("Video Player Send Frame Ready Events")]
    [Category("Video/Video Player/Send Frame Ready Events")]
    [Description("The Send Frame Ready Events property of the Video Player component")]
    
    [Image(typeof(IconVideo), ColorTheme.Type.Blue)]
    [Keywords("Movie, Film")]
    
    [Serializable]
    public class GenTypeBool_VideoPlayer_SendFrameReadyEvents : TypeBool
    {
        [SerializeField] private GetGameObject m_VideoPlayer = new GetGameObject(
            new GenTypeGameObject_VideoPlayer()
        );
        
        public override bool GetPreview(GameObject source)
        {
            GameObject instance = this.m_VideoPlayer.GetPreview(source);
            if (instance == null) return default;
            
            VideoPlayer component = instance.GetComponent<VideoPlayer>();
            return component != null ? component.sendFrameReadyEvents : default;
        }
        
        public override bool Get(Args args)
        {
            VideoPlayer instance = this.m_VideoPlayer.Get<VideoPlayer>(args);
            return instance != null
                ? instance.sendFrameReadyEvents
                : default;
        }
        
        public override void Set(bool value, Args args)
        {
            VideoPlayer component = this.m_VideoPlayer.Get<VideoPlayer>(args);
            if (component != null) component.sendFrameReadyEvents = (bool) value;
        }
        
        public override string ToString()
        {
            return $"{this.m_VideoPlayer} Send Frame Ready Events";
        }
        
        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}

Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.