Class Texture2D
Texture 2D
Inheritance
System.Object
Texture2D
Inherited Members
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.Engine
Assembly: UE4DotNet.dll
Syntax
public class Texture2D : 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 |
bForceMiplevelsToBeResident
Declaration
public bool bForceMiplevelsToBeResident { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
bGlobalForceMipLevelsToBeResident
Declaration
public bool bGlobalForceMipLevelsToBeResident { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
bHasBeenPaintedInEditor
Declaration
public bool bHasBeenPaintedInEditor { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
bHasStreamingUpdatePending
Declaration
public bool bHasStreamingUpdatePending { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
bIgnoreStreamingMipBias
Declaration
public bool bIgnoreStreamingMipBias { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
bIsStreamable
Declaration
public bool bIsStreamable { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
bTemporarilyDisableStreaming
Declaration
public bool bTemporarilyDisableStreaming { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
DefaultObject
Get UE4 Default Object for this Class
Declaration
public static Texture2D DefaultObject { get; }
Property Value
Type | Description |
---|---|
Texture2D |
FirstResourceMemMip
keep track of first mip level used for ResourceMem creation
Declaration
public int FirstResourceMemMip { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
ForceMipLevelsToBeResidentTimestamp
WorldSettings timestamp that tells the streamer to force all miplevels to be resident up until that time.
Declaration
public double ForceMipLevelsToBeResidentTimestamp { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
ImportedSize
The imported size of the texture.
Declaration
public IntPoint ImportedSize { get; set; }
Property Value
Type | Description |
---|---|
IntPoint |
Remarks
Only valid on cooked builds when texture source is not available. Access ONLY via the GetImportedSize() accessor!
LevelIndex
- Level scope index of this texture.
Declaration
public int LevelIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
It is used to reduce the amount of lookup to map a texture to its level index.
- Useful when building texture streaming data, as well as when filling the texture streamer with precomputed data.
- It relates to FStreamingTextureBuildInfo::TextureLevelIndex and also the index in ULevel::StreamingTextureGuids.
- Default value of -1, indicates that the texture has an unknown index (not yet processed). At level load time,
- -2 is also used to indicate that the texture has been processed but no entry were found in the level table.
- After any of these processes, the LevelIndex is reset to INDEX_NONE. Making it ready for the next level task.
StaticClass
Get UE4 Class
Declaration
public static Class StaticClass { get; }
Property Value
Type | Description |
---|---|
Class |
StreamingIndex
FStreamingTexture index used by the texture streaming system.
Declaration
public int StreamingIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceBlueprint_GetSizeX()
Gets the X size of the texture, in pixels
Declaration
public int Blueprint_GetSizeX()
Returns
Type | Description |
---|---|
System.Int32 |
Blueprint_GetSizeY()
Gets the Y size of the texture, in pixels
Declaration
public int Blueprint_GetSizeY()
Returns
Type | Description |
---|---|
System.Int32 |
New(UObject, Name)
Spawn an object of this class
Declaration
public static Texture2D New(UObject obj = null, Name name = default(Name))
Parameters
Type | Name | Description |
---|---|---|
UObject | obj | |
Name | name |
Returns
Type | Description |
---|---|
Texture2D |
Operators
| Improve this Doc View SourceImplicit(IntPtr to Texture2D)
Convert from IntPtr to UObject
Declaration
public static implicit operator Texture2D(IntPtr p)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | p |
Returns
Type | Description |
---|---|
Texture2D |