Class MediaTexture
Implements a texture asset for rendering video tracks from UMediaPlayer assets.
Inherited Members
Namespace: UE4.MediaAssets
Assembly: UE4DotNet.dll
Syntax
public class MediaTexture : Texture
Properties
| Improve this Doc View SourceAddressX
The addressing mode to use for the X axis.
Declaration
public byte AddressX { get; set; }
Property Value
Type | Description |
---|---|
System.Byte |
AddressY
The addressing mode to use for the Y axis.
Declaration
public byte AddressY { get; set; }
Property Value
Type | Description |
---|---|
System.Byte |
AutoClear
Declaration
public bool AutoClear { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
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 |
DefaultObject
Get UE4 Default Object for this Class
Declaration
public static MediaTexture DefaultObject { get; }
Property Value
Type | Description |
---|---|
MediaTexture |
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
StaticClass
Get UE4 Class
Declaration
public static Class StaticClass { get; }
Property Value
Type | Description |
---|---|
Class |
Methods
| Improve this Doc View SourceGetAspectRatio()
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
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
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
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
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 |
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 SourceImplicit(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 |