# VideoPlayer

> Plays video content onto a target.

## Definition

* **Type:** Class
* **Namespace:** [UnityEngine.Video](/engine/6000.0/script-reference/unityengine/video.md)
* **Assembly:** UnityEngine.VideoModule
* **Inherits from:** [Behaviour](/engine/6000.0/script-reference/unityengine/behaviour.md)

```csharp
[RequireComponent(typeof(Transform))]
public sealed class VideoPlayer : Behaviour
```

## Remarks

Content can be either a [VideoClip](/engine/6000.0/script-reference/unityengine/video/videoclip.md) imported asset or a URL such as `file://` or `http://`. Video content will be projected onto one of the supported targets, such as camera background or [RenderTexture](/engine/6000.0/script-reference/unityengine/rendertexture.md). If the video content includes transparency, this transparency will be present in the target, allowing objects behind the video target to be visible. When the data [VideoPlayer.source](/engine/6000.0/script-reference/unityengine/video/videoplayer/source.md) is set to URL, the audio and video description of what is being played will only be initialized once the [VideoPlayer](/engine/6000.0/script-reference/unityengine/video/videoplayer.md) preparation is completed. You can test this with [VideoPlayer.isPrepared](/engine/6000.0/script-reference/unityengine/video/videoplayer/isprepared.md).

Refer to [Video file compatibility](/engine/6000.0/manual/video/sources/file-compatibility.md) for more information on supported video file formats.

**The following demonstrates a few features of the VideoPlayer:**&#x20;

## Examples

```csharp
// Examples of VideoPlayer function

using UnityEngine;
using UnityEngine.Video;

public class Example : MonoBehaviour
{
    void Start()
    {
        // Will attach a VideoPlayer to the main camera.
        GameObject camera = GameObject.Find("Main Camera");

        // VideoPlayer automatically targets the camera backplane when it is added
        // to a camera object, no need to change videoPlayer.targetCamera.
        var videoPlayer = camera.AddComponent<UnityEngine.Video.VideoPlayer>();

        // Play on awake defaults to true. Set it to false to avoid the url set
        // below to auto-start playback since we're in Start().
        videoPlayer.playOnAwake = false;

        // By default, VideoPlayers added to a camera will use the far plane.
        // Let's target the near plane instead.
        videoPlayer.renderMode = UnityEngine.Video.VideoRenderMode.CameraNearPlane;

        // This will cause our Scene to be visible through the video being played.
        videoPlayer.targetCameraAlpha = 0.5F;

        // Set the video to play. URL supports local absolute or relative paths.
        // Here, using absolute.
        videoPlayer.url = "/Users/graham/movie.mov";

        // Skip the first 100 frames.
        videoPlayer.frame = 100;

        // Restart from beginning when done.
        videoPlayer.isLooping = true;

        // Each time we reach the end, we slow down the playback by a factor of 10.
        videoPlayer.loopPointReached += EndReached;

        // Start playback. This means the VideoPlayer may have to prepare (reserve
        // resources, pre-load a few frames, etc.). To better control the delays
        // associated with this preparation one can use videoPlayer.Prepare() along with
        // its prepareCompleted event.
        videoPlayer.Play();
    }

    void EndReached(UnityEngine.Video.VideoPlayer vp)
    {
        vp.playbackSpeed = vp.playbackSpeed / 10.0F;
    }
}
```

## Properties

| Property                                                                                                                    | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| --------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [aspectRatio](/engine/6000.0/script-reference/unityengine/video/videoplayer/aspectratio.md)                                 | Defines how the video content will be stretched to fill the target area.                                                                                                                                                                                                                                                                                                                                                                                           |
| [audioOutputMode](/engine/6000.0/script-reference/unityengine/video/videoplayer/audiooutputmode.md)                         | Destination for the audio embedded in the video.                                                                                                                                                                                                                                                                                                                                                                                                                   |
| [audioTrackCount](/engine/6000.0/script-reference/unityengine/video/videoplayer/audiotrackcount.md)                         | Number of audio tracks found in the data source currently configured. (Read Only)                                                                                                                                                                                                                                                                                                                                                                                  |
| [canSetDirectAudioVolume](/engine/6000.0/script-reference/unityengine/video/videoplayer/cansetdirectaudiovolume.md)         | Whether direct-output volume controls are supported for the current platform and video format. (Read Only)                                                                                                                                                                                                                                                                                                                                                         |
| [canSetPlaybackSpeed](/engine/6000.0/script-reference/unityengine/video/videoplayer/cansetplaybackspeed.md)                 | Whether you can change the playback speed. (Read Only)                                                                                                                                                                                                                                                                                                                                                                                                             |
| [canSetSkipOnDrop](/engine/6000.0/script-reference/unityengine/video/videoplayer/cansetskipondrop.md)                       | Whether frame-skipping to maintain synchronization can be controlled. (Read Only)                                                                                                                                                                                                                                                                                                                                                                                  |
| [canSetTime](/engine/6000.0/script-reference/unityengine/video/videoplayer/cansettime.md)                                   | Whether you can change the current time using the [VideoPlayer.time](/engine/6000.0/script-reference/unityengine/video/videoplayer/time.md) or [VideoPlayer.frame](/engine/6000.0/script-reference/unityengine/video/videoplayer/frame.md) properties. (Read Only)                                                                                                                                                                                                 |
| [canSetTimeUpdateMode](/engine/6000.0/script-reference/unityengine/video/videoplayer/cansettimeupdatemode.md)               | Whether you can change the time source followed by the [VideoPlayer](/engine/6000.0/script-reference/unityengine/video/videoplayer.md). (Read Only)                                                                                                                                                                                                                                                                                                                |
| [canStep](/engine/6000.0/script-reference/unityengine/video/videoplayer/canstep.md)                                         | Returns true if the [VideoPlayer](/engine/6000.0/script-reference/unityengine/video/videoplayer.md) can step forward through the video content. (Read Only)                                                                                                                                                                                                                                                                                                        |
| [clip](/engine/6000.0/script-reference/unityengine/video/videoplayer/clip.md)                                               | The clip being played by the [VideoPlayer](/engine/6000.0/script-reference/unityengine/video/videoplayer.md).                                                                                                                                                                                                                                                                                                                                                      |
| [clockTime](/engine/6000.0/script-reference/unityengine/video/videoplayer/clocktime.md)                                     | The clock time that the [VideoPlayer](/engine/6000.0/script-reference/unityengine/video/videoplayer.md) follows to schedule its samples. The clock time is expressed in seconds. (Read Only)                                                                                                                                                                                                                                                                       |
| [controlledAudioTrackCount](/engine/6000.0/script-reference/unityengine/video/videoplayer/controlledaudiotrackcount.md)     | Number of audio tracks that this [VideoPlayer](/engine/6000.0/script-reference/unityengine/video/videoplayer.md) will take control of.                                                                                                                                                                                                                                                                                                                             |
| [externalReferenceTime](/engine/6000.0/script-reference/unityengine/video/videoplayer/externalreferencetime.md)             | Reference time of the external clock the [VideoPlayer](/engine/6000.0/script-reference/unityengine/video/videoplayer.md) uses to correct its drift.                                                                                                                                                                                                                                                                                                                |
| [frame](/engine/6000.0/script-reference/unityengine/video/videoplayer/frame.md)                                             | The frame index of the currently available frame in [VideoPlayer.texture](/engine/6000.0/script-reference/unityengine/video/videoplayer/texture.md).                                                                                                                                                                                                                                                                                                               |
| [frameCount](/engine/6000.0/script-reference/unityengine/video/videoplayer/framecount.md)                                   | Number of frames in the current video content. (Read Only)                                                                                                                                                                                                                                                                                                                                                                                                         |
| [frameRate](/engine/6000.0/script-reference/unityengine/video/videoplayer/framerate.md)                                     | The frame rate of the clip or URL in frames/second. (Read Only)                                                                                                                                                                                                                                                                                                                                                                                                    |
| [height](/engine/6000.0/script-reference/unityengine/video/videoplayer/height.md)                                           | The height of the images in the [VideoClip](/engine/6000.0/script-reference/unityengine/video/videoclip.md), or URL, in pixels. (Read Only)                                                                                                                                                                                                                                                                                                                        |
| [isLooping](/engine/6000.0/script-reference/unityengine/video/videoplayer/islooping.md)                                     | Determines whether the [VideoPlayer](/engine/6000.0/script-reference/unityengine/video/videoplayer.md) restarts from the beginning when it reaches the end of the clip.                                                                                                                                                                                                                                                                                            |
| [isPaused](/engine/6000.0/script-reference/unityengine/video/videoplayer/ispaused.md)                                       | Whether playback is paused. (Read Only)                                                                                                                                                                                                                                                                                                                                                                                                                            |
| [isPlaying](/engine/6000.0/script-reference/unityengine/video/videoplayer/isplaying.md)                                     | Returns whether the VideoPlayer is currently playing the content.                                                                                                                                                                                                                                                                                                                                                                                                  |
| [isPrepared](/engine/6000.0/script-reference/unityengine/video/videoplayer/isprepared.md)                                   | Returns whether the [VideoPlayer](/engine/6000.0/script-reference/unityengine/video/videoplayer.md) has successfully prepared the content to be played.                                                                                                                                                                                                                                                                                                            |
| [length](/engine/6000.0/script-reference/unityengine/video/videoplayer/length.md)                                           | The length of the [VideoClip](/engine/6000.0/script-reference/unityengine/video/videoclip.md), or the URL, in seconds. (Read Only)                                                                                                                                                                                                                                                                                                                                 |
| [pixelAspectRatioDenominator](/engine/6000.0/script-reference/unityengine/video/videoplayer/pixelaspectratiodenominator.md) | Denominator of the pixel aspect ratio (num:den) for the [VideoClip](/engine/6000.0/script-reference/unityengine/video/videoclip.md) or the URL. (Read Only)                                                                                                                                                                                                                                                                                                        |
| [pixelAspectRatioNumerator](/engine/6000.0/script-reference/unityengine/video/videoplayer/pixelaspectrationumerator.md)     | Numerator of the pixel aspect ratio (num:den) for the [VideoClip](/engine/6000.0/script-reference/unityengine/video/videoclip.md) or the URL. (Read Only)                                                                                                                                                                                                                                                                                                          |
| [playbackSpeed](/engine/6000.0/script-reference/unityengine/video/videoplayer/playbackspeed.md)                             | Factor by which the basic playback rate will be multiplied.                                                                                                                                                                                                                                                                                                                                                                                                        |
| [playOnAwake](/engine/6000.0/script-reference/unityengine/video/videoplayer/playonawake.md)                                 | Whether the content will start playing back as soon as the component awakes.                                                                                                                                                                                                                                                                                                                                                                                       |
| [renderMode](/engine/6000.0/script-reference/unityengine/video/videoplayer/rendermode.md)                                   | Where the video content will be drawn.                                                                                                                                                                                                                                                                                                                                                                                                                             |
| [sendFrameReadyEvents](/engine/6000.0/script-reference/unityengine/video/videoplayer/sendframereadyevents.md)               | Enables the frameReady events.                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| [skipOnDrop](/engine/6000.0/script-reference/unityengine/video/videoplayer/skipondrop.md)                                   | Whether the [VideoPlayer](/engine/6000.0/script-reference/unityengine/video/videoplayer.md) is allowed to skip frames to catch up with current time.                                                                                                                                                                                                                                                                                                               |
| [source](/engine/6000.0/script-reference/unityengine/video/videoplayer/source.md)                                           | The source that the [VideoPlayer](/engine/6000.0/script-reference/unityengine/video/videoplayer.md) uses for playback.                                                                                                                                                                                                                                                                                                                                             |
| [targetCamera](/engine/6000.0/script-reference/unityengine/video/videoplayer/targetcamera.md)                               | [Camera](/engine/6000.0/script-reference/unityengine/camera.md) component to draw to when [VideoPlayer.renderMode](/engine/6000.0/script-reference/unityengine/video/videoplayer/rendermode.md) is set to either [VideoRenderMode.CameraFarPlane](/engine/6000.0/script-reference/unityengine/video/videorendermode/camerafarplane.md) or [VideoRenderMode.CameraNearPlane](/engine/6000.0/script-reference/unityengine/video/videorendermode/cameranearplane.md). |
| [targetCamera3DLayout](/engine/6000.0/script-reference/unityengine/video/videoplayer/targetcamera3dlayout.md)               | Type of 3D content contained in the source video media.                                                                                                                                                                                                                                                                                                                                                                                                            |
| [targetCameraAlpha](/engine/6000.0/script-reference/unityengine/video/videoplayer/targetcameraalpha.md)                     | Overall transparency level of the target camera plane video.                                                                                                                                                                                                                                                                                                                                                                                                       |
| [targetMaterialProperty](/engine/6000.0/script-reference/unityengine/video/videoplayer/targetmaterialproperty.md)           | [Material](/engine/6000.0/script-reference/unityengine/material.md) texture property which is targeted when [VideoPlayer.renderMode](/engine/6000.0/script-reference/unityengine/video/videoplayer/rendermode.md) is set to MaterialOverride.                                                                                                                                                                                                                      |
| [targetMaterialRenderer](/engine/6000.0/script-reference/unityengine/video/videoplayer/targetmaterialrenderer.md)           | [Renderer](/engine/6000.0/script-reference/unityengine/renderer.md) which is targeted when [VideoPlayer.renderMode](/engine/6000.0/script-reference/unityengine/video/videoplayer/rendermode.md) is set to MaterialOverride                                                                                                                                                                                                                                        |
| [targetTexture](/engine/6000.0/script-reference/unityengine/video/videoplayer/targettexture.md)                             | [RenderTexture](/engine/6000.0/script-reference/unityengine/rendertexture.md) to draw to when [VideoPlayer.renderMode](/engine/6000.0/script-reference/unityengine/video/videoplayer/rendermode.md) is set to [VideoRenderMode.RenderTexture](/engine/6000.0/script-reference/unityengine/video/videorendermode/rendertexture.md).                                                                                                                                 |
| [texture](/engine/6000.0/script-reference/unityengine/video/videoplayer/texture.md)                                         | Internal texture in which video content is placed. (Read Only)                                                                                                                                                                                                                                                                                                                                                                                                     |
| [time](/engine/6000.0/script-reference/unityengine/video/videoplayer/time.md)                                               | The presentation time of the currently available frame in [VideoPlayer.texture](/engine/6000.0/script-reference/unityengine/video/videoplayer/texture.md) in seconds.                                                                                                                                                                                                                                                                                              |
| [timeReference](/engine/6000.0/script-reference/unityengine/video/videoplayer/timereference.md)                             | The clock that the [VideoPlayer](/engine/6000.0/script-reference/unityengine/video/videoplayer.md) observes to detect and correct drift.                                                                                                                                                                                                                                                                                                                           |
| [timeUpdateMode](/engine/6000.0/script-reference/unityengine/video/videoplayer/timeupdatemode.md)                           | The clock source used by the [VideoPlayer](/engine/6000.0/script-reference/unityengine/video/videoplayer.md) to derive its current time.                                                                                                                                                                                                                                                                                                                           |
| [url](/engine/6000.0/script-reference/unityengine/video/videoplayer/url.md)                                                 | The file URL or web URL that the [VideoPlayer](/engine/6000.0/script-reference/unityengine/video/videoplayer.md) reads content from.                                                                                                                                                                                                                                                                                                                               |
| [waitForFirstFrame](/engine/6000.0/script-reference/unityengine/video/videoplayer/waitforfirstframe.md)                     | Determines whether the [VideoPlayer](/engine/6000.0/script-reference/unityengine/video/videoplayer.md) will wait for the first frame to be loaded into the texture before starting playback when [VideoPlayer.playOnAwake](/engine/6000.0/script-reference/unityengine/video/videoplayer/playonawake.md) is on.                                                                                                                                                    |
| [width](/engine/6000.0/script-reference/unityengine/video/videoplayer/width.md)                                             | The width of the images in the [VideoClip](/engine/6000.0/script-reference/unityengine/video/videoclip.md), or URL, in pixels. (Read Only)                                                                                                                                                                                                                                                                                                                         |

## Static Properties

| Property                                                                                                                      | Description                                                        |
| ----------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
| [controlledAudioTrackMaxCount](/engine/6000.0/script-reference/unityengine/video/videoplayer/controlledaudiotrackmaxcount.md) | Maximum number of audio tracks that can be controlled. (Read Only) |

## Methods

| Method                                                                                                        | Description                                                                                                                                                                                                                                                                                                                                                                                        |
| ------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [EnableAudioTrack](/engine/6000.0/script-reference/unityengine/video/videoplayer/enableaudiotrack.md)         | Enable/disable audio track decoding. Only effective when the [VideoPlayer](/engine/6000.0/script-reference/unityengine/video/videoplayer.md) is not currently playing.                                                                                                                                                                                                                             |
| [GetAudioChannelCount](/engine/6000.0/script-reference/unityengine/video/videoplayer/getaudiochannelcount.md) | The number of audio channels in the specified audio track.                                                                                                                                                                                                                                                                                                                                         |
| [GetAudioLanguageCode](/engine/6000.0/script-reference/unityengine/video/videoplayer/getaudiolanguagecode.md) | Returns the language code, if any, for the specified track.                                                                                                                                                                                                                                                                                                                                        |
| [GetAudioSampleRate](/engine/6000.0/script-reference/unityengine/video/videoplayer/getaudiosamplerate.md)     | Gets the audio track sampling rate in Hertz.                                                                                                                                                                                                                                                                                                                                                       |
| [GetDirectAudioMute](/engine/6000.0/script-reference/unityengine/video/videoplayer/getdirectaudiomute.md)     | Gets the direct-output audio mute status for the specified track.                                                                                                                                                                                                                                                                                                                                  |
| [GetDirectAudioVolume](/engine/6000.0/script-reference/unityengine/video/videoplayer/getdirectaudiovolume.md) | Return the direct-output volume for specified track.                                                                                                                                                                                                                                                                                                                                               |
| [GetTargetAudioSource](/engine/6000.0/script-reference/unityengine/video/videoplayer/gettargetaudiosource.md) | Gets the [AudioSource](/engine/6000.0/script-reference/unityengine/audiosource.md) that will receive audio samples for the specified track if [VideoPlayer.audioOutputMode](/engine/6000.0/script-reference/unityengine/video/videoplayer/audiooutputmode.md) is set to [VideoAudioOutputMode.AudioSource](/engine/6000.0/script-reference/unityengine/video/videoaudiooutputmode/audiosource.md). |
| [IsAudioTrackEnabled](/engine/6000.0/script-reference/unityengine/video/videoplayer/isaudiotrackenabled.md)   | Whether decoding for the specified audio track is enabled. See [VideoPlayer.EnableAudioTrack](/engine/6000.0/script-reference/unityengine/video/videoplayer/enableaudiotrack.md) for distinction with mute.                                                                                                                                                                                        |
| [Pause](/engine/6000.0/script-reference/unityengine/video/videoplayer/pause.md)                               | Pauses the playback and leaves the current time intact.                                                                                                                                                                                                                                                                                                                                            |
| [Play](/engine/6000.0/script-reference/unityengine/video/videoplayer/play.md)                                 | Starts or resumes the playback of a video.                                                                                                                                                                                                                                                                                                                                                         |
| [Prepare](/engine/6000.0/script-reference/unityengine/video/videoplayer/prepare.md)                           | Prepares the playback engine so that it's ready for playback.                                                                                                                                                                                                                                                                                                                                      |
| [SetDirectAudioMute](/engine/6000.0/script-reference/unityengine/video/videoplayer/setdirectaudiomute.md)     | Set the direct-output audio mute status for the specified track.                                                                                                                                                                                                                                                                                                                                   |
| [SetDirectAudioVolume](/engine/6000.0/script-reference/unityengine/video/videoplayer/setdirectaudiovolume.md) | Set the direct-output audio volume for the specified track.                                                                                                                                                                                                                                                                                                                                        |
| [SetTargetAudioSource](/engine/6000.0/script-reference/unityengine/video/videoplayer/settargetaudiosource.md) | Sets the [AudioSource](/engine/6000.0/script-reference/unityengine/audiosource.md) that will receive audio samples for the specified track if this audio target is selected with [VideoPlayer.audioOutputMode](/engine/6000.0/script-reference/unityengine/video/videoplayer/audiooutputmode.md).                                                                                                  |
| [StepForward](/engine/6000.0/script-reference/unityengine/video/videoplayer/stepforward.md)                   | Immediately advance the current time by one frame.                                                                                                                                                                                                                                                                                                                                                 |
| [Stop](/engine/6000.0/script-reference/unityengine/video/videoplayer/stop.md)                                 | Stops the playback and sets the current time to 0.                                                                                                                                                                                                                                                                                                                                                 |

## Events

| Member                                                                                                      | Description                                                                                                                                                                                                                 |
| ----------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [clockResyncOccurred](/engine/6000.0/script-reference/unityengine/video/videoplayer/clockresyncoccurred.md) | Invoked when the [VideoPlayer](/engine/6000.0/script-reference/unityengine/video/videoplayer.md) clock is synced back to its [VideoTimeReference](/engine/6000.0/script-reference/unityengine/video/videotimereference.md). |
| [errorReceived](/engine/6000.0/script-reference/unityengine/video/videoplayer/errorreceived.md)             | The VideoPlayer uses this callback to report various types of errors.                                                                                                                                                       |
| [frameDropped](/engine/6000.0/script-reference/unityengine/video/videoplayer/framedropped.md)               | Invoked when the video decoder does not produce a frame as per the time source during playback.                                                                                                                             |
| [frameReady](/engine/6000.0/script-reference/unityengine/video/videoplayer/frameready.md)                   | The VideoPlayer invokes this event when a new frame is ready to be displayed.                                                                                                                                               |
| [loopPointReached](/engine/6000.0/script-reference/unityengine/video/videoplayer/looppointreached.md)       | The VideoPlayer emits this event when the video reaches the end of its playback.                                                                                                                                            |
| [prepareCompleted](/engine/6000.0/script-reference/unityengine/video/videoplayer/preparecompleted.md)       | The [VideoPlayer](/engine/6000.0/script-reference/unityengine/video/videoplayer.md) invokes this event when the video is ready for playback.                                                                                |
| [seekCompleted](/engine/6000.0/script-reference/unityengine/video/videoplayer/seekcompleted.md)             | Invoke after a seek operation completes.                                                                                                                                                                                    |
| [started](/engine/6000.0/script-reference/unityengine/video/videoplayer/started.md)                         | The VideoPlayer emits this event when the video starts to play.                                                                                                                                                             |

## Delegates

| Delegate                                                                                                                      | Description                                                                                                                                  |
| ----------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| [VideoPlayer.ErrorEventHandler](/engine/6000.0/script-reference/unityengine/video/videoplayer/erroreventhandler.md)           | Delegate type for [VideoPlayer](/engine/6000.0/script-reference/unityengine/video/videoplayer.md) events that contain an error message.      |
| [VideoPlayer.EventHandler](/engine/6000.0/script-reference/unityengine/video/videoplayer/eventhandler.md)                     | Delegate type for all events without parameters emitted by [VideoPlayer](/engine/6000.0/script-reference/unityengine/video/videoplayer.md)s. |
| [VideoPlayer.FrameReadyEventHandler](/engine/6000.0/script-reference/unityengine/video/videoplayer/framereadyeventhandler.md) | Delegate type for [VideoPlayer](/engine/6000.0/script-reference/unityengine/video/videoplayer.md) events that carry a frame number.          |
| [VideoPlayer.TimeEventHandler](/engine/6000.0/script-reference/unityengine/video/videoplayer/timeeventhandler.md)             | Delegate type for [VideoPlayer](/engine/6000.0/script-reference/unityengine/video/videoplayer.md) events that carry a time position.         |

## Inheritance

**Inherited Members:**

* [Behaviour.enabled](/engine/6000.0/script-reference/unityengine/behaviour/enabled.md)
* [Behaviour.isActiveAndEnabled](/engine/6000.0/script-reference/unityengine/behaviour/isactiveandenabled.md)
* [Component.GetComponent(Type)](/engine/6000.0/script-reference/unityengine/component/getcomponent.md#getcomponent\(type\))
* [Component.GetComponent\<T>()](/engine/6000.0/script-reference/unityengine/component/getcomponent.md)
* [Component.TryGetComponent(Type, Component)](/engine/6000.0/script-reference/unityengine/component/trygetcomponent.md)
* [Component.TryGetComponent\<T>(T)](/engine/6000.0/script-reference/unityengine/component/trygetcomponent.md)
* [Component.GetComponent(string)](/engine/6000.0/script-reference/unityengine/component/getcomponent.md#getcomponent\(string\))
* [Component.GetComponentInChildren(Type, bool)](/engine/6000.0/script-reference/unityengine/component/getcomponentinchildren.md#getcomponentinchildren\(type-bool\))
* [Component.GetComponentInChildren(Type)](/engine/6000.0/script-reference/unityengine/component/getcomponentinchildren.md#getcomponentinchildren\(type\))
* [Component.GetComponentInChildren\<T>(bool)](/engine/6000.0/script-reference/unityengine/component/getcomponentinchildren.md)
* [Component.GetComponentsInChildren(Type, bool)](/engine/6000.0/script-reference/unityengine/component/getcomponentsinchildren.md)
* [Component.GetComponentsInChildren\<T>(bool)](/engine/6000.0/script-reference/unityengine/component/getcomponentsinchildren.md#getcomponentsinchildrent\(bool\))
* [Component.GetComponentsInChildren\<T>(bool, List\<T>)](/engine/6000.0/script-reference/unityengine/component/getcomponentsinchildren.md)
* [Component.GetComponentsInChildren\<T>()](/engine/6000.0/script-reference/unityengine/component/getcomponentsinchildren.md#getcomponentsinchildrent\(\))
* [Component.GetComponentsInChildren\<T>(List\<T>)](/engine/6000.0/script-reference/unityengine/component/getcomponentsinchildren.md)
* [Component.GetComponentInParent(Type, bool)](/engine/6000.0/script-reference/unityengine/component/getcomponentinparent.md#getcomponentinparent\(type-bool\))
* [Component.GetComponentInParent(Type)](/engine/6000.0/script-reference/unityengine/component/getcomponentinparent.md#getcomponentinparent\(type\))
* [Component.GetComponentInParent\<T>(bool)](/engine/6000.0/script-reference/unityengine/component/getcomponentinparent.md#getcomponentinparentt\(bool\))
* [Component.GetComponentInParent\<T>()](/engine/6000.0/script-reference/unityengine/component/getcomponentinparent.md#getcomponentinparentt\(\))
* [Component.GetComponentsInParent(Type, bool)](/engine/6000.0/script-reference/unityengine/component/getcomponentsinparent.md)
* [Component.GetComponentsInParent\<T>(bool)](/engine/6000.0/script-reference/unityengine/component/getcomponentsinparent.md#getcomponentsinparentt\(bool\))
* [Component.GetComponentsInParent\<T>(bool, List\<T>)](/engine/6000.0/script-reference/unityengine/component/getcomponentsinparent.md)
* [Component.GetComponentsInParent\<T>()](/engine/6000.0/script-reference/unityengine/component/getcomponentsinparent.md#getcomponentsinparentt\(\))
* [Component.GetComponents(Type)](/engine/6000.0/script-reference/unityengine/component/getcomponents.md#getcomponents\(type\))
* [Component.GetComponents(Type, List\<Component>)](/engine/6000.0/script-reference/unityengine/component/getcomponents.md#getcomponents\(type-listcomponent\))
* [Component.GetComponents\<T>(List\<T>)](/engine/6000.0/script-reference/unityengine/component/getcomponents.md)
* [Component.GetComponents\<T>()](/engine/6000.0/script-reference/unityengine/component/getcomponents.md#getcomponentst\(\))
* [Component.GetComponentIndex()](/engine/6000.0/script-reference/unityengine/component/getcomponentindex.md)
* [Component.CompareTag(string)](/engine/6000.0/script-reference/unityengine/component/comparetag.md#comparetag\(string\))
* [Component.CompareTag(TagHandle)](/engine/6000.0/script-reference/unityengine/component/comparetag.md#comparetag\(taghandle\))
* [Component.SendMessageUpwards(string, Object, SendMessageOptions)](/engine/6000.0/script-reference/unityengine/component/sendmessageupwards.md#sendmessageupwards\(string-object-sendmessageoptions\))
* [Component.SendMessageUpwards(string, SendMessageOptions)](/engine/6000.0/script-reference/unityengine/component/sendmessageupwards.md#sendmessageupwards\(string-sendmessageoptions\))
* [Component.SendMessage(string, Object)](/engine/6000.0/script-reference/unityengine/component/sendmessage.md#sendmessage\(string-object\))
* [Component.SendMessage(string)](/engine/6000.0/script-reference/unityengine/component/sendmessage.md#sendmessage\(string\))
* [Component.SendMessage(string, Object, SendMessageOptions)](/engine/6000.0/script-reference/unityengine/component/sendmessage.md#sendmessage\(string-object-sendmessageoptions\))
* [Component.SendMessage(string, SendMessageOptions)](/engine/6000.0/script-reference/unityengine/component/sendmessage.md#sendmessage\(string-sendmessageoptions\))
* [Component.BroadcastMessage(string, Object, SendMessageOptions)](/engine/6000.0/script-reference/unityengine/component/broadcastmessage.md#broadcastmessage\(string-object-sendmessageoptions\))
* [Component.BroadcastMessage(string, SendMessageOptions)](/engine/6000.0/script-reference/unityengine/component/broadcastmessage.md#broadcastmessage\(string-sendmessageoptions\))
* [Component.transform](/engine/6000.0/script-reference/unityengine/component/transform.md)
* [Component.gameObject](/engine/6000.0/script-reference/unityengine/component/gameobject.md)
* [Component.tag](/engine/6000.0/script-reference/unityengine/component/tag.md)
* [Object.GetInstanceID()](/engine/6000.0/script-reference/unityengine/object/getinstanceid.md)
* [Object.GetHashCode()](/engine/6000.0/script-reference/unityengine/object/gethashcode.md)
* [Object.InstantiateAsync\<T>(T)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Transform)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Vector3, Quaternion)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Transform, Vector3, Quaternion)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Vector3, Quaternion)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, Vector3, Quaternion)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, Vector3, Quaternion, CancellationToken)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>, CancellationToken)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, InstantiateParameters, CancellationToken)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, InstantiateParameters, CancellationToken)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Vector3, Quaternion, InstantiateParameters, CancellationToken)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Vector3, Quaternion, InstantiateParameters, CancellationToken)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>, InstantiateParameters, CancellationToken)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.Instantiate(Object, Vector3, Quaternion)](/engine/6000.0/script-reference/unityengine/object/instantiate.md#instantiate\(object-vector3-quaternion\))
* [Object.Instantiate(Object, Vector3, Quaternion, Transform)](/engine/6000.0/script-reference/unityengine/object/instantiate.md#instantiate\(object-vector3-quaternion-transform\))
* [Object.Instantiate(Object)](/engine/6000.0/script-reference/unityengine/object/instantiate.md#instantiate\(object\))
* [Object.Instantiate(Object, Scene)](/engine/6000.0/script-reference/unityengine/object/instantiate.md#instantiate\(object-scene\))
* [Object.Instantiate\<T>(T, InstantiateParameters)](/engine/6000.0/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Vector3, Quaternion, InstantiateParameters)](/engine/6000.0/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate(Object, Transform)](/engine/6000.0/script-reference/unityengine/object/instantiate.md#instantiate\(object-transform\))
* [Object.Instantiate(Object, Transform, bool)](/engine/6000.0/script-reference/unityengine/object/instantiate.md#instantiate\(object-transform-bool\))
* [Object.Instantiate\<T>(T)](/engine/6000.0/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Vector3, Quaternion)](/engine/6000.0/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Vector3, Quaternion, Transform)](/engine/6000.0/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Transform)](/engine/6000.0/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Transform, bool)](/engine/6000.0/script-reference/unityengine/object/instantiate.md)
* [Object.Destroy(Object, float)](/engine/6000.0/script-reference/unityengine/object/destroy.md)
* [Object.DestroyImmediate(Object, bool)](/engine/6000.0/script-reference/unityengine/object/destroyimmediate.md)
* [Object.FindObjectsByType(Type, FindObjectsSortMode)](/engine/6000.0/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytype\(type-findobjectssortmode\))
* [Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)](/engine/6000.0/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytype\(type-findobjectsinactive-findobjectssortmode\))
* [Object.DontDestroyOnLoad(Object)](/engine/6000.0/script-reference/unityengine/object/dontdestroyonload.md)
* [Object.FindObjectsByType\<T>(FindObjectsSortMode)](/engine/6000.0/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytypet\(findobjectssortmode\))
* [Object.FindObjectsByType\<T>(FindObjectsInactive, FindObjectsSortMode)](/engine/6000.0/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytypet\(findobjectsinactive-findobjectssortmode\))
* [Object.FindFirstObjectByType\<T>()](/engine/6000.0/script-reference/unityengine/object/findfirstobjectbytype.md#findfirstobjectbytypet\(\))
* [Object.FindAnyObjectByType\<T>()](/engine/6000.0/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytypet\(\))
* [Object.FindFirstObjectByType\<T>(FindObjectsInactive)](/engine/6000.0/script-reference/unityengine/object/findfirstobjectbytype.md#findfirstobjectbytypet\(findobjectsinactive\))
* [Object.FindAnyObjectByType\<T>(FindObjectsInactive)](/engine/6000.0/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytypet\(findobjectsinactive\))
* [Object.FindFirstObjectByType(Type)](/engine/6000.0/script-reference/unityengine/object/findfirstobjectbytype.md#findfirstobjectbytype\(type\))
* [Object.FindAnyObjectByType(Type)](/engine/6000.0/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytype\(type\))
* [Object.FindFirstObjectByType(Type, FindObjectsInactive)](/engine/6000.0/script-reference/unityengine/object/findfirstobjectbytype.md#findfirstobjectbytype\(type-findobjectsinactive\))
* [Object.FindAnyObjectByType(Type, FindObjectsInactive)](/engine/6000.0/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytype\(type-findobjectsinactive\))
* [Object.ToString()](/engine/6000.0/script-reference/unityengine/object/tostring.md)
* [Object.name](/engine/6000.0/script-reference/unityengine/object/name.md)
* [Object.hideFlags](/engine/6000.0/script-reference/unityengine/object/hideflags.md)

### Operators

| Operator                                                                           | Description                                                             |
| ---------------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| [operator ==](/engine/6000.0/script-reference/unityengine/object/op-equality.md)   | Compares two object references to see if they refer to the same object. |
| [bool](/engine/6000.0/script-reference/unityengine/object/op-implicit.md)          | Determines whether the object exists.                                   |
| [operator !=](/engine/6000.0/script-reference/unityengine/object/op-inequality.md) | Compares if two objects refer to a different object.                    |
