terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
UnityEngine.Texture2D Class Referencesealed
+ Inheritance diagram for UnityEngine.Texture2D:
+ Collaboration diagram for UnityEngine.Texture2D:

Public Member Functions

 Texture2D (int width, int height, TextureFormat textureFormat, bool mipChain)
 
 Texture2D (int width, int height)
 
void SetPixel (int x, int y, Color color)
 
Color GetPixelBilinear (float u, float v)
 
unsafe NativeArray< TGetRawTextureData< T > ()
 
void Apply ([DefaultValue("true")] bool updateMipmaps, [DefaultValue("false")] bool makeNoLongerReadable)
 
void Apply ()
 
unsafe int GetInstanceID ()
 
override int GetHashCode ()
 
override bool Equals (object other)
 
static void Destroy (Object obj, [DefaultValue("0.0F")] float t)
 
static void DestroyImmediate (Object obj, [DefaultValue("false")] bool allowDestroyingAssets)
 
static Object[] FindObjectsOfType (Type type, bool includeInactive)
 
static void DontDestroyOnLoad ([NotNull("NullExceptionObject")] Object target)
 
override string ToString ()
 

Static Public Member Functions

static implicit operator bool (Object exists)
 
static Object Instantiate (Object original, Vector3 position, Quaternion rotation)
 
static Object Instantiate (Object original)
 
static T Instantiate< T > (T original)
 
static T Instantiate< T > (T original, Vector3 position, Quaternion rotation)
 
static void Destroy (Object obj)
 
static void DestroyImmediate (Object obj)
 
static T[] FindObjectsOfType< T > ()
 
static bool operator== (Object x, Object y)
 
static bool operator!= (Object x, Object y)
 

Static Public Attributes

static readonly int GenerateAllMips
 

Package Functions

bool ValidateFormat (TextureFormat format, int width, int height)
 
 Texture2D (int width, int height, TextureFormat textureFormat, int mipCount, bool linear, IntPtr nativeTex)
 
bool ValidateFormat (TextureFormat format)
 
bool ValidateFormat (GraphicsFormat format, FormatUsage usage)
 
UnityException CreateNonReadableException (Texture t)
 
UnityException CreateNativeArrayLengthOverflowException ()
 
static Object FindObjectFromInstanceID (int instanceID)
 

Static Package Attributes

const int streamingMipmapsPriorityMin = -128
 
const int streamingMipmapsPriorityMax = 127
 
static int OffsetOfInstanceIDInCPlusPlusObject
 

Properties

TextureFormat format [get, set]
 
static Texture2D whiteTexture [get, set]
 
override bool isReadable [get, set]
 
virtual int width [get, set]
 
virtual int height [get, set]
 
TextureWrapMode wrapMode [get, set]
 
FilterMode filterMode [set]
 
Vector2 texelSize [get, set]
 
string name [get, set]
 
HideFlags hideFlags [set]
 

Private Member Functions

static bool Internal_CreateImpl ([Writable] Texture2D mono, int w, int h, int mipCount, GraphicsFormat format, TextureCreationFlags flags, IntPtr nativeTex)
 
void ApplyImpl (bool updateMipmaps, bool makeNoLongerReadable)
 
void SetPixelImpl (int image, int mip, int x, int y, Color color)
 
Color GetPixelBilinearImpl (int image, int mip, float u, float v)
 
IntPtr GetWritableImageData (int frame)
 
ulong GetRawImageDataSize ()
 
void SetPixelImpl_Injected (int image, int mip, int x, int y, ref Color color)
 
void GetPixelBilinearImpl_Injected (int image, int mip, float u, float v, out Color ret)
 
int GetDataWidth ()
 
int GetDataHeight ()
 
void get_texelSize_Injected (out Vector2 ret)
 
IntPtr GetCachedPtr ()
 
static string ToString (Object obj)
 
static int GetOffsetOfInstanceIDInCPlusPlusObject ()
 
static Object Internal_CloneSingle ([NotNull("NullExceptionObject")] Object data)
 
static string GetName ([NotNull("NullExceptionObject")] Object obj)
 
static void SetName ([NotNull("NullExceptionObject")] Object obj, string name)
 
static Object Internal_InstantiateSingle_Injected (Object data, ref Vector3 pos, ref Quaternion rot)
 

Static Private Member Functions

static void Internal_Create ([Writable] Texture2D mono, int w, int h, int mipCount, GraphicsFormat format, TextureCreationFlags flags, IntPtr nativeTex)
 
static bool CompareBaseObjects (Object lhs, Object rhs)
 
static bool IsNativeObjectAlive (Object o)
 
static void CheckNullArgument (object arg, string message)
 
static Object Internal_InstantiateSingle ([NotNull("NullExceptionObject")] Object data, Vector3 pos, Quaternion rot)
 

Private Attributes

IntPtr m_CachedPtr
 

Static Private Attributes

const string objectIsNullMessage = "The Object you want to instantiate is null."
 
const string cloneDestroyedMessage = "Instantiate failed because the clone was destroyed during creation. This can happen if DestroyImmediate is called in MonoBehaviour.Awake."
 

Detailed Description

Definition at line 17 of file Texture2D.cs.


The documentation for this class was generated from the following file: