Skip to content

Commit

Permalink
Update C# example on Playing videos
Browse files Browse the repository at this point in the history
  • Loading branch information
ShawnHardern committed Aug 23, 2024
1 parent 4fde335 commit 830aacc
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tutorials/animation/playing_videos.rst
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ To implement the chroma key effect, follow these steps:

2. In the "ChromaKeyShader.gdshader" file, write the custom shader code as shown below:

.. code-block:: gd
.. code-block:: glsl
shader_type canvas_item;
Expand Down Expand Up @@ -343,11 +343,6 @@ To allow users to manipulate the chroma key effect in real-time, we created slid
public override void _Ready()
{
_videoStreamPlayer = GetNode<VideoStreamPlayer>("VideoStreamPlayer");
_videoStreamPlayer.Finished += OnVideoStreamPlayerFinished;

GetNode<ColorPickerButton>("ColorPickerButton").ColorChanged += OnColorPickerButtonColorChanged;
GetNode<HSlider>("HSlider").ValueChanged += OnHSliderValueChanged;
GetNode<HSlider>("HSlider2").ValueChanged += OnHSlider2ValueChanged;
}

private void OnColorPickerButtonColorChanged(Color color)
Expand Down

0 comments on commit 830aacc

Please sign in to comment.