Show / Hide Table of Contents

Class MediaTexture

Implements a texture asset for rendering video tracks from UMediaPlayer assets.

Inheritance
System.Object
UObject
Texture
MediaTexture
Inherited Members
Texture.Source
Texture.LightingGuid
Texture.AssetImportData
Texture.AdjustBrightness
Texture.AdjustBrightnessCurve
Texture.AdjustVibrance
Texture.AdjustSaturation
Texture.AdjustRGBCurve
Texture.AdjustHue
Texture.AdjustMinAlpha
Texture.AdjustMaxAlpha
Texture.CompressionNoAlpha
Texture.CompressionNone
Texture.DeferCompression
Texture.MaxTextureSize
Texture.CompressionQuality
Texture.bDitherMipMapAlpha
Texture.AlphaCoverageThresholds
Texture.bPreserveBorder
Texture.bFlipGreenChannel
Texture.bForcePVRTC4
Texture.PowerOfTwoMode
Texture.PaddingColor
Texture.bChromaKeyTexture
Texture.ChromaKeyThreshold
Texture.ChromaKeyColor
Texture.MipGenSettings
Texture.CompositeTexture
Texture.CompositeTextureMode
Texture.CompositePower
Texture.LODBias
Texture.NumCinematicMipLevels
Texture.CompressionSettings
Texture.Filter
Texture.LODGroup
Texture.SRGB
Texture.bUseLegacyGamma
Texture.NeverStream
Texture.bNoTiling
Texture.bUseCinematicMipLevels
Texture.bAsyncResourceReleaseHasBeenStarted
Texture.CachedCombinedLODBias
Texture.AssetUserData
UObject.TransientPackage
UObject.CastTo<T>(UObject)
UObject.CastTo(UObject, Type)
UObject.RemoveObject(UObject)
UObject.MakeObjectArrayField<T>(NativeArray*)
UObject.NotImplemented<T>()
UObject.Construct()
UObject.GetHashCode()
UObject.GetName()
UObject.ToString()
UObject.Name
UObject._None
UObject.None
UObject.ObjPointer
UObject.LoadObjectFromClass(Class, UObject, String, String, LoadFlags, PackageMap, Boolean)
UObject.LoadClass(Class, UObject, String, String, LoadFlags, PackageMap)
UObject.GetPropertyFor<T>(Name)
UObject.ExecuteUbergraph
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: UE4.MediaAssets
Assembly: UE4DotNet.dll
Syntax
public class MediaTexture : Texture

Properties

| Improve this Doc View Source

AddressX

The addressing mode to use for the X axis.

Declaration
public byte AddressX { get; set; }
Property Value
Type Description
System.Byte
| Improve this Doc View Source

AddressY

The addressing mode to use for the Y axis.

Declaration
public byte AddressY { get; set; }
Property Value
Type Description
System.Byte
| Improve this Doc View Source

AutoClear

Declaration
public bool AutoClear { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

ClearColor

The color used to clear the texture if AutoClear is enabled (default = black).

Declaration
public LinearColor ClearColor { get; set; }
Property Value
Type Description
LinearColor
| Improve this Doc View Source

DefaultObject

Get UE4 Default Object for this Class

Declaration
public static MediaTexture DefaultObject { get; }
Property Value
Type Description
MediaTexture
| Improve this Doc View Source

MediaPlayer

The media player asset associated with this texture.

Declaration
public MediaPlayer MediaPlayer { get; set; }
Property Value
Type Description
MediaPlayer
Remarks

This property is meant for design-time convenience. To change the associated media player at run-time, use the SetMediaPlayer method.

@see SetMediaPlayer

| Improve this Doc View Source

StaticClass

Get UE4 Class

Declaration
public static Class StaticClass { get; }
Property Value
Type Description
Class

Methods

| Improve this Doc View Source

GetAspectRatio()

Gets the current aspect ratio of the texture.

Declaration
public float GetAspectRatio()
Returns
Type Description
System.Single
Remarks

@return Texture aspect ratio. @see GetHeight, GetWidth

| Improve this Doc View Source

GetHeight()

Gets the current height of the texture.

Declaration
public int GetHeight()
Returns
Type Description
System.Int32
Remarks

@return Texture height (in pixels). @see GetAspectRatio, GetWidth

| Improve this Doc View Source

GetMediaPlayer()

Get the media player that provides the video samples.

Declaration
public MediaPlayer GetMediaPlayer()
Returns
Type Description
MediaPlayer
Remarks

@return The texture's media player, or nullptr if not set. @see SetMediaPlayer

| Improve this Doc View Source

GetWidth()

Gets the current width of the texture.

Declaration
public int GetWidth()
Returns
Type Description
System.Int32
Remarks

@return Texture width (in pixels). @see GetAspectRatio, GetHeight

| Improve this Doc View Source

New(UObject, Name)

Spawn an object of this class

Declaration
public static MediaTexture New(UObject obj = null, Name name = default(Name))
Parameters
Type Name Description
UObject obj
Name name
Returns
Type Description
MediaTexture
| Improve this Doc View Source

SetMediaPlayer(MediaPlayer)

Set the media player that provides the video samples.

Declaration
public void SetMediaPlayer(MediaPlayer NewMediaPlayer)
Parameters
Type Name Description
MediaPlayer NewMediaPlayer
Remarks

@param NewMediaPlayer The player to set. @see GetMediaPlayer

Operators

| Improve this Doc View Source

Implicit(IntPtr to MediaTexture)

Convert from IntPtr to UObject

Declaration
public static implicit operator MediaTexture(IntPtr p)
Parameters
Type Name Description
System.IntPtr p
Returns
Type Description
MediaTexture
  • Improve this Doc
  • View Source
Back to top Generated by DocFX