---
tags:
    - "Movie, Film"
---

# Video Player Can Set Playback Speed

[Video](../index.md) / [Video Player](index.md) / **Video Player Can Set Playback Speed**

<div class="grid cards" markdown>

* :green_circle: Can Read

* :red_circle: Cannot Write

</div>

## Description

The Can Set Playback Speed property of the Video Player component

## Code

```cs
// <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]
    
    [Title("Video Player Can Set Playback Speed")]
    [Category("Video/Video Player/Can Set Playback Speed")]
    [Description("The Can Set Playback Speed property of the Video Player component")]
    
    [Image(typeof(IconVideo), ColorTheme.Type.Blue)]
    [Keywords("Movie, Film")]
    
    [Serializable]
    public class GenTypeBool_VideoPlayer_CanSetPlaybackSpeed : 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.canSetPlaybackSpeed : default;
        }
        
        public override bool Get(Args args)
        {
            VideoPlayer instance = this.m_VideoPlayer.Get<VideoPlayer>(args);
            return instance != null
                ? instance.canSetPlaybackSpeed
                : default;
        }
        
        public override string ToString()
        {
            return $"{this.m_VideoPlayer} Can Set Playback Speed";
        }
        
        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}


```

