Search Results for

    Show / Hide Table of Contents

    Class VideoTexture

    ChatGPT told me that extending UnityEngine.Object directly is not recommended. So I made this ScriptableObject wrapper around RenderTexture.

    Inheritance
    object
    Object
    ScriptableObject
    VideoTexture
    Inherited Members
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(string)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetEntityId()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(object)
    Object.InstantiateAsync<T>(T)
    Object.InstantiateAsync<T>(T, Transform)
    Object.InstantiateAsync<T>(T, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int)
    Object.InstantiateAsync<T>(T, int, Transform)
    Object.InstantiateAsync<T>(T, int, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>)
    Object.InstantiateAsync<T>(T, int, Transform, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int, Transform, Vector3, Quaternion, CancellationToken)
    Object.InstantiateAsync<T>(T, int, Transform, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>)
    Object.InstantiateAsync<T>(T, int, Transform, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>, CancellationToken)
    Object.InstantiateAsync<T>(T, InstantiateParameters, CancellationToken)
    Object.InstantiateAsync<T>(T, int, InstantiateParameters, CancellationToken)
    Object.InstantiateAsync<T>(T, Vector3, Quaternion, InstantiateParameters, CancellationToken)
    Object.InstantiateAsync<T>(T, int, Vector3, Quaternion, InstantiateParameters, CancellationToken)
    Object.InstantiateAsync<T>(T, int, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>, InstantiateParameters, CancellationToken)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Scene)
    Object.Instantiate<T>(T, InstantiateParameters)
    Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, bool)
    Object.FindObjectsByType(Type, FindObjectsSortMode)
    Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectsByType<T>(FindObjectsSortMode)
    Object.FindObjectsOfType<T>(bool)
    Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType<T>(bool)
    Object.FindFirstObjectByType<T>()
    Object.FindAnyObjectByType<T>()
    Object.FindFirstObjectByType<T>(FindObjectsInactive)
    Object.FindAnyObjectByType<T>(FindObjectsInactive)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindFirstObjectByType(Type)
    Object.FindAnyObjectByType(Type)
    Object.FindObjectOfType(Type, bool)
    Object.FindFirstObjectByType(Type, FindObjectsInactive)
    Object.FindAnyObjectByType(Type, FindObjectsInactive)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Glitch9
    Assembly: Glitch9.dll
    Syntax
    public sealed class VideoTexture : ScriptableObject

    Fields

    | Edit this page View Source

    renderTexture

    Declaration
    public RenderTexture renderTexture
    Field Value
    Type Description
    RenderTexture
    | Edit this page View Source

    url

    Declaration
    public string url
    Field Value
    Type Description
    string

    Properties

    | Edit this page View Source

    height

    Declaration
    public float height { get; }
    Property Value
    Type Description
    float
    | Edit this page View Source

    width

    Declaration
    public float width { get; }
    Property Value
    Type Description
    float

    Methods

    | Edit this page View Source

    Create(string, int, int, int, RenderTextureFormat, int)

    Declaration
    public static VideoTexture Create(string url, int width = 512, int height = 512, int depth = 0, RenderTextureFormat fmt = RenderTextureFormat.ARGB32, int aa = 1)
    Parameters
    Type Name Description
    string url
    int width
    int height
    int depth
    RenderTextureFormat fmt
    int aa
    Returns
    Type Description
    VideoTexture
    | Edit this page View Source

    FromFilePath(string, int, int, int, RenderTextureFormat, int)

    Declaration
    public static VideoTexture FromFilePath(string path, int width, int height, int depth = 0, RenderTextureFormat fmt = RenderTextureFormat.ARGB32, int aa = 1)
    Parameters
    Type Name Description
    string path
    int width
    int height
    int depth
    RenderTextureFormat fmt
    int aa
    Returns
    Type Description
    VideoTexture
    | Edit this page View Source

    Release()

    Declaration
    public void Release()
    | Edit this page View Source

    SetSize(int, int)

    Declaration
    public void SetSize(int width, int height)
    Parameters
    Type Name Description
    int width
    int height
    | Edit this page View Source

    ToBackgroundImage()

    Declaration
    public StyleBackground ToBackgroundImage()
    Returns
    Type Description
    StyleBackground
    | Edit this page View Source

    ToBase64()

    Declaration
    public string ToBase64()
    Returns
    Type Description
    string
    | Edit this page View Source

    ToByteArray()

    Declaration
    public byte[] ToByteArray()
    Returns
    Type Description
    byte[]

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    FileExtensions.ToFile<T>(T, string)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    UnityObjectExtensions.EncodeToBase64(Object)
    UnityObjectExtensions.ToBytes(Object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation