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.Mesh Class Referencesealed
+ Inheritance diagram for UnityEngine.Mesh:
+ Collaboration diagram for UnityEngine.Mesh:

Classes

struct  MeshData
 

Public Member Functions

 Mesh ()
 
void SetIndexBufferParams (int indexCount, IndexFormat format)
 
bool HasVertexAttribute (VertexAttribute attr)
 
void SetSubMesh (int index, SubMeshDescriptor desc, MeshUpdateFlags flags=MeshUpdateFlags.Default)
 
void SetVertices (List< Vector3 > inVertices)
 
void SetVertices (List< Vector3 > inVertices, int start, int length)
 
void SetVertices (List< Vector3 > inVertices, int start, int length, [DefaultValue("MeshUpdateFlags.Default")] MeshUpdateFlags flags)
 
void SetNormals (List< Vector3 > inNormals)
 
void SetNormals (List< Vector3 > inNormals, int start, int length)
 
void SetNormals (List< Vector3 > inNormals, int start, int length, [DefaultValue("MeshUpdateFlags.Default")] MeshUpdateFlags flags)
 
void SetTangents (List< Vector4 > inTangents)
 
void SetTangents (List< Vector4 > inTangents, int start, int length)
 
void SetTangents (List< Vector4 > inTangents, int start, int length, [DefaultValue("MeshUpdateFlags.Default")] MeshUpdateFlags flags)
 
void SetColors (List< Color32 > inColors)
 
void SetColors (List< Color32 > inColors, int start, int length)
 
void SetColors (List< Color32 > inColors, int start, int length, [DefaultValue("MeshUpdateFlags.Default")] MeshUpdateFlags flags)
 
void SetUVs (int channel, List< Vector2 > uvs)
 
void SetUVs (int channel, List< Vector4 > uvs)
 
void SetUVs (int channel, List< Vector2 > uvs, int start, int length)
 
void SetUVs (int channel, List< Vector2 > uvs, int start, int length, [DefaultValue("MeshUpdateFlags.Default")] MeshUpdateFlags flags)
 
void SetUVs (int channel, List< Vector4 > uvs, int start, int length)
 
void SetUVs (int channel, List< Vector4 > uvs, int start, int length, [DefaultValue("MeshUpdateFlags.Default")] MeshUpdateFlags flags)
 
void GetUVs (int channel, List< Vector4 > uvs)
 
void SetVertexBufferParams (int vertexCount, params VertexAttributeDescriptor[] attributes)
 
void SetVertexBufferData< T > (T[] data, int dataStart, int meshBufferStart, int count, int stream=0, MeshUpdateFlags flags=MeshUpdateFlags.Default)
 
int[] GetIndices (int submesh)
 
int[] GetIndices (int submesh, [DefaultValue("true")] bool applyBaseVertex)
 
void SetIndexBufferData< T > (T[] data, int dataStart, int meshBufferStart, int count, MeshUpdateFlags flags=MeshUpdateFlags.Default)
 
void SetTriangles (List< int > triangles, int submesh)
 
void SetTriangles (List< int > triangles, int submesh, bool calculateBounds)
 
void SetTriangles (List< int > triangles, int submesh, [DefaultValue("true")] bool calculateBounds, [DefaultValue("0")] int baseVertex)
 
void SetTriangles (List< int > triangles, int trianglesStart, int trianglesLength, int submesh, bool calculateBounds=true, int baseVertex=0)
 
void Clear ([DefaultValue("true")] bool keepVertexLayout)
 
void Clear ()
 
void RecalculateBounds ()
 
void RecalculateBounds ([DefaultValue("MeshUpdateFlags.Default")] MeshUpdateFlags flags)
 
void MarkDynamic ()
 
void UploadMeshData (bool markNoLongerReadable)
 
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)
 

Package Functions

static Object FindObjectFromInstanceID (int instanceID)
 

Static Package Functions

static VertexAttribute GetUVChannel (int uvIndex)
 
static int DefaultDimensionForChannel (VertexAttribute channel)
 

Static Package Attributes

static int OffsetOfInstanceIDInCPlusPlusObject
 

Properties

bool canAccess [get, set]
 
int vertexCount [get, set]
 
int subMeshCount [get, set]
 
Bounds bounds [set]
 
Vector3[] vertices [get, set]
 
Vector3[] normals [get, set]
 
Vector4[] tangents [get, set]
 
Color32[] colors32 [get, set]
 
string name [get, set]
 
HideFlags hideFlags [set]
 

Private Member Functions

static void Internal_Create ([Writable] Mesh mono)
 
void InternalSetIndexBufferDataFromArray (Array data, int dataStart, int meshBufferStart, int count, int elemSize, MeshUpdateFlags flags)
 
void SetVertexBufferParamsFromArray (int vertexCount, params VertexAttributeDescriptor[] attributes)
 
void InternalSetVertexBufferDataFromArray (int stream, Array data, int dataStart, int meshBufferStart, int count, int elemSize, MeshUpdateFlags flags)
 
int[] GetIndicesImpl (int submesh, bool applyBaseVertex)
 
void SetIndicesImpl (int submesh, MeshTopology topology, IndexFormat indicesFormat, Array indices, int arrayStart, int arraySize, bool calculateBounds, int baseVertex)
 
void PrintErrorCantAccessChannel (VertexAttribute ch)
 
void SetArrayForChannelImpl (VertexAttribute channel, VertexAttributeFormat format, int dim, Array values, int arraySize, int valuesStart, int valuesCount, MeshUpdateFlags flags)
 
Array GetAllocArrayFromChannelImpl (VertexAttribute channel, VertexAttributeFormat format, int dim)
 
void GetArrayFromChannelImpl (VertexAttribute channel, VertexAttributeFormat format, int dim, Array values)
 
void ClearImpl (bool keepVertexLayout)
 
void RecalculateBoundsImpl (MeshUpdateFlags flags)
 
void MarkDynamicImpl ()
 
void UploadMeshDataImpl (bool markNoLongerReadable)
 
T[] GetAllocArrayFromChannel< T > (VertexAttribute channel, VertexAttributeFormat format, int dim)
 
T[] GetAllocArrayFromChannel< T > (VertexAttribute channel)
 
void SetSizedArrayForChannel (VertexAttribute channel, VertexAttributeFormat format, int dim, Array values, int valuesArrayLength, int valuesStart, int valuesCount, MeshUpdateFlags flags)
 
void SetListForChannel< T > (VertexAttribute channel, VertexAttributeFormat format, int dim, List< T > values, int start, int length, MeshUpdateFlags flags)
 
void SetListForChannel< T > (VertexAttribute channel, List< T > values, int start, int length, MeshUpdateFlags flags)
 
void GetListForChannel< T > (List< T > buffer, int capacity, VertexAttribute channel, int dim)
 
void GetListForChannel< T > (List< T > buffer, int capacity, VertexAttribute channel, int dim, VertexAttributeFormat channelType)
 
void SetUvsImpl< T > (int uvIndex, int dim, List< T > uvs, int start, int length, MeshUpdateFlags flags)
 
void GetUVsImpl< T > (int uvIndex, List< T > uvs, int dim)
 
void PrintErrorCantAccessIndices ()
 
bool CheckCanAccessSubmesh (int submesh, bool errorAboutTriangles)
 
bool CheckCanAccessSubmeshTriangles (int submesh)
 
bool CheckCanAccessSubmeshIndices (int submesh)
 
void CheckIndicesArrayRange (int valuesLength, int start, int length)
 
void SetTrianglesImpl (int submesh, IndexFormat indicesFormat, Array triangles, int trianglesArrayLength, int start, int length, bool calculateBounds, int baseVertex)
 
void SetSubMesh_Injected (int index, ref SubMeshDescriptor desc, MeshUpdateFlags flags=MeshUpdateFlags.Default)
 
void set_bounds_Injected (ref Bounds value)
 
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 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 Mesh.cs.


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