terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
Mesh.cs
Go to the documentation of this file.
1using System;
9
10namespace UnityEngine
11{
12 // Token: 0x02000048 RID: 72
13 [NativeHeader("Runtime/Graphics/Mesh/MeshScriptBindings.h")]
15 public sealed class Mesh : Object
16 {
17 // Token: 0x060000AD RID: 173 RVA: 0x00002DE4 File Offset: 0x00000FE4
18 [FreeFunction("MeshScripting::CreateMesh")]
19 private static void Internal_Create([Writable] Mesh mono)
20 {
21 throw new MissingMethodException();
22 }
23
24 // Token: 0x060000AE RID: 174 RVA: 0x00002DF8 File Offset: 0x00000FF8
26 public Mesh()
27 {
28 if (!true)
29 {
30 }
31 base..ctor();
32 throw new MissingMethodException();
33 }
34
35 // Token: 0x060000AF RID: 175 RVA: 0x00002E14 File Offset: 0x00001014
36 [FreeFunction(Name = "MeshScripting::SetIndexBufferParams", HasExplicitThis = true, ThrowsException = true)]
37 public void SetIndexBufferParams(int indexCount, IndexFormat format)
38 {
39 throw new MissingMethodException();
40 }
41
42 // Token: 0x060000B0 RID: 176 RVA: 0x00002E28 File Offset: 0x00001028
43 [FreeFunction(Name = "MeshScripting::InternalSetIndexBufferDataFromArray", HasExplicitThis = true, ThrowsException = true)]
45 {
46 throw new MissingMethodException();
47 }
48
49 // Token: 0x060000B1 RID: 177 RVA: 0x00002E3C File Offset: 0x0000103C
50 [FreeFunction(Name = "MeshScripting::SetVertexBufferParamsFromArray", HasExplicitThis = true, ThrowsException = true)]
55
56 // Token: 0x060000B2 RID: 178 RVA: 0x00002E50 File Offset: 0x00001050
57 [FreeFunction(Name = "MeshScripting::InternalSetVertexBufferDataFromArray", HasExplicitThis = true)]
58 private void InternalSetVertexBufferDataFromArray(int stream, Array data, int dataStart, int meshBufferStart, int count, int elemSize, MeshUpdateFlags flags)
59 {
60 throw new MissingMethodException();
61 }
62
63 // Token: 0x060000B3 RID: 179 RVA: 0x00002E64 File Offset: 0x00001064
64 [FreeFunction(Name = "MeshScripting::GetIndices", HasExplicitThis = true)]
65 private int[] GetIndicesImpl(int submesh, bool applyBaseVertex)
66 {
67 throw new MissingMethodException();
68 }
69
70 // Token: 0x060000B4 RID: 180 RVA: 0x00002E78 File Offset: 0x00001078
71 [FreeFunction(Name = "SetMeshIndicesFromScript", HasExplicitThis = true, ThrowsException = true)]
72 private void SetIndicesImpl(int submesh, MeshTopology topology, IndexFormat indicesFormat, Array indices, int arrayStart, int arraySize, bool calculateBounds, int baseVertex)
73 {
74 throw new MissingMethodException();
75 }
76
77 // Token: 0x060000B5 RID: 181 RVA: 0x00002E8C File Offset: 0x0000108C
78 [FreeFunction(Name = "MeshScripting::PrintErrorCantAccessChannel", HasExplicitThis = true)]
83
84 // Token: 0x060000B6 RID: 182 RVA: 0x00002EA0 File Offset: 0x000010A0
85 [FreeFunction(Name = "MeshScripting::HasChannel", HasExplicitThis = true)]
87 {
88 throw new MissingMethodException();
89 }
90
91 // Token: 0x060000B7 RID: 183 RVA: 0x00002EB4 File Offset: 0x000010B4
92 [FreeFunction(Name = "SetMeshComponentFromArrayFromScript", HasExplicitThis = true)]
97
98 // Token: 0x060000B8 RID: 184 RVA: 0x00002EC8 File Offset: 0x000010C8
99 [FreeFunction(Name = "AllocExtractMeshComponentFromScript", HasExplicitThis = true)]
104
105 // Token: 0x060000B9 RID: 185 RVA: 0x00002EDC File Offset: 0x000010DC
106 [FreeFunction(Name = "ExtractMeshComponentFromScript", HasExplicitThis = true)]
111
112 // Token: 0x17000026 RID: 38
113 // (get) Token: 0x060000BA RID: 186 RVA: 0x00002EF0 File Offset: 0x000010F0
114 internal bool canAccess
115 {
116 [NativeMethod("CanAccessFromScript")]
117 get
118 {
119 throw new MissingMethodException();
120 }
121 }
122
123 // Token: 0x17000027 RID: 39
124 // (get) Token: 0x060000BB RID: 187 RVA: 0x00002F04 File Offset: 0x00001104
125 public int vertexCount
126 {
127 [NativeMethod("GetVertexCount")]
128 get
129 {
130 throw new MissingMethodException();
131 }
132 }
133
134 // Token: 0x17000028 RID: 40
135 // (get) Token: 0x060000BC RID: 188 RVA: 0x00002F18 File Offset: 0x00001118
136 // (set) Token: 0x060000BD RID: 189 RVA: 0x00002F2C File Offset: 0x0000112C
137 public int subMeshCount
138 {
139 [NativeMethod(Name = "GetSubMeshCount")]
140 get
141 {
142 throw new MissingMethodException();
143 }
144 [FreeFunction(Name = "MeshScripting::SetSubMeshCount", HasExplicitThis = true)]
145 set
146 {
147 throw new MissingMethodException();
148 }
149 }
150
151 // Token: 0x060000BE RID: 190 RVA: 0x00002F40 File Offset: 0x00001140
152 [FreeFunction("MeshScripting::SetSubMesh", HasExplicitThis = true, ThrowsException = true)]
154 {
155 throw new MissingMethodException();
156 }
157
158 // Token: 0x17000029 RID: 41
159 // (set) Token: 0x060000BF RID: 191 RVA: 0x00002F54 File Offset: 0x00001154
161 {
162 set
163 {
164 throw new MissingMethodException();
165 }
166 }
167
168 // Token: 0x060000C0 RID: 192 RVA: 0x00002F68 File Offset: 0x00001168
169 [NativeMethod("Clear")]
170 private void ClearImpl(bool keepVertexLayout)
171 {
172 throw new MissingMethodException();
173 }
174
175 // Token: 0x060000C1 RID: 193 RVA: 0x00002F7C File Offset: 0x0000117C
176 [NativeMethod("RecalculateBounds")]
178 {
179 throw new MissingMethodException();
180 }
181
182 // Token: 0x060000C2 RID: 194 RVA: 0x00002F90 File Offset: 0x00001190
183 [NativeMethod("MarkDynamic")]
184 private void MarkDynamicImpl()
185 {
186 throw new MissingMethodException();
187 }
188
189 // Token: 0x060000C3 RID: 195 RVA: 0x00002FA4 File Offset: 0x000011A4
190 [NativeMethod("UploadMeshData")]
192 {
193 throw new MissingMethodException();
194 }
195
196 // Token: 0x060000C4 RID: 196 RVA: 0x000021B3 File Offset: 0x000003B3
198 {
199 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
200 }
201
202 // Token: 0x060000C5 RID: 197 RVA: 0x00002FB8 File Offset: 0x000011B8
203 internal static int DefaultDimensionForChannel(VertexAttribute channel)
204 {
205 return 4;
206 }
207
208 // Token: 0x060000C6 RID: 198 RVA: 0x00002FCC File Offset: 0x000011CC
210 {
212 do
213 {
214 bool canAccess = this.canAccess;
215 bool flag = this.HasVertexAttribute(A_1);
217 if (allocArrayFromChannelImpl == null)
218 {
219 return;
220 }
221 }
222 while (allocArrayFromChannelImpl != null);
223 throw new InvalidCastException();
224 }
225
226 // Token: 0x060000C7 RID: 199 RVA: 0x00003000 File Offset: 0x00001200
228 {
229 /*
230An exception occurred when decompiling this method (060000C7)
231
232ICSharpCode.Decompiler.DecompilerException: Error decompiling T[] UnityEngine.Mesh::GetAllocArrayFromChannel<T>(UnityEngine.Rendering.VertexAttribute)
233
234 ---> System.Exception: Basic block has to end with unconditional control flow.
235{
236 Block_0:
237 stloc:int32(var_0_06, call:int32(Mesh::DefaultDimensionForChannel, ldloc:VertexAttribute(channel)))
238}
239
240 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
241 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
242 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
243 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
244 --- End of inner exception stack trace ---
245 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
246 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
247*/;
248 }
249
250 // Token: 0x060000C8 RID: 200 RVA: 0x00003014 File Offset: 0x00001214
255
256 // Token: 0x060000C9 RID: 201 RVA: 0x0000303C File Offset: 0x0000123C
261
262 // Token: 0x060000CA RID: 202 RVA: 0x00003054 File Offset: 0x00001254
268
269 // Token: 0x060000CB RID: 203 RVA: 0x00003070 File Offset: 0x00001270
270 private void GetListForChannel<T>(List<T> buffer, int capacity, VertexAttribute channel, int dim)
271 {
272 }
273
274 // Token: 0x060000CC RID: 204 RVA: 0x00003080 File Offset: 0x00001280
276 {
277 bool canAccess = this.canAccess;
278 bool flag = this.HasVertexAttribute(channel);
281 }
282
283 // Token: 0x1700002A RID: 42
284 // (get) Token: 0x060000CD RID: 205 RVA: 0x000021B3 File Offset: 0x000003B3
286 {
287 get
288 {
289 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
290 }
291 }
292
293 // Token: 0x1700002B RID: 43
294 // (get) Token: 0x060000CE RID: 206 RVA: 0x000021B3 File Offset: 0x000003B3
296 {
297 get
298 {
299 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
300 }
301 }
302
303 // Token: 0x1700002C RID: 44
304 // (get) Token: 0x060000CF RID: 207 RVA: 0x000021B3 File Offset: 0x000003B3
306 {
307 get
308 {
309 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
310 }
311 }
312
313 // Token: 0x1700002D RID: 45
314 // (get) Token: 0x060000D0 RID: 208 RVA: 0x000030B8 File Offset: 0x000012B8
316 {
317 get
318 {
320 }
321 }
322
323 // Token: 0x060000D1 RID: 209 RVA: 0x000030D0 File Offset: 0x000012D0
325 {
326 }
327
328 // Token: 0x060000D2 RID: 210 RVA: 0x000030E0 File Offset: 0x000012E0
331 {
332 }
333
334 // Token: 0x060000D3 RID: 211 RVA: 0x000030F0 File Offset: 0x000012F0
335 public void SetVertices(List<Vector3> inVertices, int start, int length, [DefaultValue("MeshUpdateFlags.Default")] MeshUpdateFlags flags)
336 {
337 }
338
339 // Token: 0x060000D4 RID: 212 RVA: 0x00003100 File Offset: 0x00001300
341 {
342 }
343
344 // Token: 0x060000D5 RID: 213 RVA: 0x00003110 File Offset: 0x00001310
347 {
348 }
349
350 // Token: 0x060000D6 RID: 214 RVA: 0x00003120 File Offset: 0x00001320
351 public void SetNormals(List<Vector3> inNormals, int start, int length, [DefaultValue("MeshUpdateFlags.Default")] MeshUpdateFlags flags)
352 {
353 }
354
355 // Token: 0x060000D7 RID: 215 RVA: 0x00003130 File Offset: 0x00001330
357 {
358 }
359
360 // Token: 0x060000D8 RID: 216 RVA: 0x00003140 File Offset: 0x00001340
363 {
364 }
365
366 // Token: 0x060000D9 RID: 217 RVA: 0x00003150 File Offset: 0x00001350
367 public void SetTangents(List<Vector4> inTangents, int start, int length, [DefaultValue("MeshUpdateFlags.Default")] MeshUpdateFlags flags)
368 {
369 }
370
371 // Token: 0x060000DA RID: 218 RVA: 0x00003160 File Offset: 0x00001360
373 {
374 int num = NoAllocHelpers.SafeLength(inColors);
375 }
376
377 // Token: 0x060000DB RID: 219 RVA: 0x00003174 File Offset: 0x00001374
380 {
381 }
382
383 // Token: 0x060000DC RID: 220 RVA: 0x00003184 File Offset: 0x00001384
384 public void SetColors(List<Color32> inColors, int start, int length, [DefaultValue("MeshUpdateFlags.Default")] MeshUpdateFlags flags)
385 {
387 }
388
389 // Token: 0x060000DD RID: 221 RVA: 0x000031A0 File Offset: 0x000013A0
390 private void SetUvsImpl<T>(int uvIndex, int dim, List<T> uvs, int start, int length, MeshUpdateFlags flags)
391 {
392 Debug.LogError("The uv index is invalid. Must be in the range 0 to 7.");
393 }
394
395 // Token: 0x060000DE RID: 222 RVA: 0x000031C0 File Offset: 0x000013C0
396 public void SetUVs(int channel, List<Vector2> uvs)
397 {
398 }
399
400 // Token: 0x060000DF RID: 223 RVA: 0x000031D0 File Offset: 0x000013D0
401 public void SetUVs(int channel, List<Vector4> uvs)
402 {
403 }
404
405 // Token: 0x060000E0 RID: 224 RVA: 0x000031E0 File Offset: 0x000013E0
407 public void SetUVs(int channel, List<Vector2> uvs, int start, int length)
408 {
409 }
410
411 // Token: 0x060000E1 RID: 225 RVA: 0x000031F0 File Offset: 0x000013F0
412 public void SetUVs(int channel, List<Vector2> uvs, int start, int length, [DefaultValue("MeshUpdateFlags.Default")] MeshUpdateFlags flags)
413 {
414 }
415
416 // Token: 0x060000E2 RID: 226 RVA: 0x00003200 File Offset: 0x00001400
418 public void SetUVs(int channel, List<Vector4> uvs, int start, int length)
419 {
420 }
421
422 // Token: 0x060000E3 RID: 227 RVA: 0x00003210 File Offset: 0x00001410
423 public void SetUVs(int channel, List<Vector4> uvs, int start, int length, [DefaultValue("MeshUpdateFlags.Default")] MeshUpdateFlags flags)
424 {
425 }
426
427 // Token: 0x060000E4 RID: 228 RVA: 0x00003220 File Offset: 0x00001420
428 private void GetUVsImpl<T>(int uvIndex, List<T> uvs, int dim)
429 {
430 if (uvs != null)
431 {
432 int vertexCount = this.vertexCount;
434 return;
435 }
436 }
437
438 // Token: 0x060000E5 RID: 229 RVA: 0x00003240 File Offset: 0x00001440
439 public void GetUVs(int channel, List<Vector4> uvs)
440 {
441 }
442
443 // Token: 0x060000E6 RID: 230 RVA: 0x00003250 File Offset: 0x00001450
445 {
446 throw new MissingMethodException();
447 }
448
449 // Token: 0x060000E7 RID: 231 RVA: 0x00003264 File Offset: 0x00001464
450 public void SetVertexBufferData<T>(T[] data, int dataStart, int meshBufferStart, int count, int stream = 0, MeshUpdateFlags flags = MeshUpdateFlags.Default) where T : struct
451 {
452 bool canAccess = this.canAccess;
453 bool flag = UnsafeUtility.IsArrayBlittable(data);
454 this.InternalSetVertexBufferDataFromArray(stream, data, dataStart, meshBufferStart, count, flag ? 1 : 0, flags);
455 }
456
457 // Token: 0x060000E8 RID: 232 RVA: 0x000032B8 File Offset: 0x000014B8
459 {
460 string name = base.name;
461 Debug.LogError(string.Format("Not allowed to access triangles/indices on mesh '{0}' (isReadable is false; Read/Write must be enabled in import settings)", name));
462 }
463
464 // Token: 0x060000E9 RID: 233 RVA: 0x000032DC File Offset: 0x000014DC
466 {
467 throw new MissingMethodException();
468 }
469
470 // Token: 0x060000EA RID: 234 RVA: 0x0000331C File Offset: 0x0000151C
472 {
473 return this.CheckCanAccessSubmesh(submesh, true);
474 }
475
476 // Token: 0x060000EB RID: 235 RVA: 0x00003334 File Offset: 0x00001534
478 {
479 long num = 0L;
480 return this.CheckCanAccessSubmesh(submesh, num != 0L);
481 }
482
483 // Token: 0x060000EC RID: 236 RVA: 0x0000334C File Offset: 0x0000154C
485 public int[] GetIndices(int submesh)
486 {
487 return this.GetIndices(submesh, true);
488 }
489
490 // Token: 0x060000ED RID: 237 RVA: 0x00003364 File Offset: 0x00001564
491 public int[] GetIndices(int submesh, [DefaultValue("true")] bool applyBaseVertex)
492 {
493 long num = 0L;
494 bool flag = this.CheckCanAccessSubmesh(submesh, num != 0L);
495 throw new MissingMethodException();
496 }
497
498 // Token: 0x060000EE RID: 238 RVA: 0x00003384 File Offset: 0x00001584
499 public void SetIndexBufferData<T>(T[] data, int dataStart, int meshBufferStart, int count, MeshUpdateFlags flags = MeshUpdateFlags.Default) where T : struct
500 {
501 bool canAccess = this.canAccess;
502 bool flag = UnsafeUtility.IsArrayBlittable(data);
503 this.InternalSetIndexBufferDataFromArray(data, dataStart, meshBufferStart, count, flag ? 1 : 0, flags);
504 }
505
506 // Token: 0x060000EF RID: 239 RVA: 0x000033C4 File Offset: 0x000015C4
508 {
509 if (length == 0)
510 {
511 return;
512 }
513 }
514
515 // Token: 0x060000F0 RID: 240 RVA: 0x000033D8 File Offset: 0x000015D8
516 private void SetTrianglesImpl(int submesh, IndexFormat indicesFormat, Array triangles, int trianglesArrayLength, int start, int length, bool calculateBounds, int baseVertex)
517 {
518 this.CheckIndicesArrayRange(trianglesArrayLength, start, length);
519 throw new MissingMethodException();
520 }
521
522 // Token: 0x060000F1 RID: 241 RVA: 0x000033F8 File Offset: 0x000015F8
524 public void SetTriangles(List<int> triangles, int submesh)
525 {
526 long num = 0L;
527 this.SetTriangles(triangles, submesh, true, (int)num);
528 }
529
530 // Token: 0x060000F2 RID: 242 RVA: 0x00003414 File Offset: 0x00001614
532 public void SetTriangles(List<int> triangles, int submesh, bool calculateBounds)
533 {
534 long num = 0L;
535 this.SetTriangles(triangles, submesh, calculateBounds, (int)num);
536 }
537
538 // Token: 0x060000F3 RID: 243 RVA: 0x00003430 File Offset: 0x00001630
539 public void SetTriangles(List<int> triangles, int submesh, [DefaultValue("true")] bool calculateBounds, [DefaultValue("0")] int baseVertex)
540 {
541 }
542
543 // Token: 0x060000F4 RID: 244 RVA: 0x00003440 File Offset: 0x00001640
544 public void SetTriangles(List<int> triangles, int trianglesStart, int trianglesLength, int submesh, bool calculateBounds = true, int baseVertex = 0)
545 {
546 int num = 1;
547 bool flag = this.CheckCanAccessSubmesh(submesh, num != 0);
548 throw new MissingMethodException();
549 }
550
551 // Token: 0x060000F5 RID: 245 RVA: 0x00003460 File Offset: 0x00001660
552 public void Clear([DefaultValue("true")] bool keepVertexLayout)
553 {
554 throw new MissingMethodException();
555 }
556
557 // Token: 0x060000F6 RID: 246 RVA: 0x00003474 File Offset: 0x00001674
559 public void Clear()
560 {
561 throw new MissingMethodException();
562 }
563
564 // Token: 0x060000F7 RID: 247 RVA: 0x00003488 File Offset: 0x00001688
566 public void RecalculateBounds()
567 {
568 }
569
570 // Token: 0x060000F8 RID: 248 RVA: 0x00003498 File Offset: 0x00001698
571 public void RecalculateBounds([DefaultValue("MeshUpdateFlags.Default")] MeshUpdateFlags flags)
572 {
573 throw new MissingMethodException();
574 }
575
576 // Token: 0x060000F9 RID: 249 RVA: 0x000034CC File Offset: 0x000016CC
577 public void MarkDynamic()
578 {
579 throw new MissingMethodException();
580 }
581
582 // Token: 0x060000FA RID: 250 RVA: 0x000034E8 File Offset: 0x000016E8
584 {
585 throw new MissingMethodException();
586 }
587
588 // Token: 0x060000FB RID: 251 RVA: 0x00003504 File Offset: 0x00001704
590 {
591 throw new MissingMethodException();
592 }
593
594 // Token: 0x060000FC RID: 252 RVA: 0x00003518 File Offset: 0x00001718
596 {
597 throw new MissingMethodException();
598 }
599
600 // Token: 0x02000049 RID: 73
601 [NativeHeader("Runtime/Graphics/Mesh/MeshScriptBindings.h")]
602 [StaticAccessor("MeshDataBindings", StaticAccessorType.DoubleColon)]
603 public struct MeshData
604 {
605 // Token: 0x04000210 RID: 528
607 internal IntPtr m_Ptr;
608 }
609 }
610}
class f__AnonymousType0<< Count > j__TPar
static void LogError(object message)
Definition Debug.cs:62
void UploadMeshDataImpl(bool markNoLongerReadable)
Definition Mesh.cs:191
void SetTriangles(List< int > triangles, int trianglesStart, int trianglesLength, int submesh, bool calculateBounds=true, int baseVertex=0)
Definition Mesh.cs:544
void RecalculateBounds([DefaultValue("MeshUpdateFlags.Default")] MeshUpdateFlags flags)
Definition Mesh.cs:571
void SetUVs(int channel, List< Vector4 > uvs, int start, int length, [DefaultValue("MeshUpdateFlags.Default")] MeshUpdateFlags flags)
Definition Mesh.cs:423
void SetUVs(int channel, List< Vector2 > uvs)
Definition Mesh.cs:396
void PrintErrorCantAccessChannel(VertexAttribute ch)
Definition Mesh.cs:79
void SetUVs(int channel, List< Vector4 > uvs)
Definition Mesh.cs:401
void SetTriangles(List< int > triangles, int submesh, bool calculateBounds)
Definition Mesh.cs:532
Vector4[] tangents
Definition Mesh.cs:306
void SetArrayForChannelImpl(VertexAttribute channel, VertexAttributeFormat format, int dim, Array values, int arraySize, int valuesStart, int valuesCount, MeshUpdateFlags flags)
Definition Mesh.cs:93
static VertexAttribute GetUVChannel(int uvIndex)
Definition Mesh.cs:197
void UploadMeshData(bool markNoLongerReadable)
Definition Mesh.cs:583
Bounds bounds
Definition Mesh.cs:161
void SetTriangles(List< int > triangles, int submesh, [DefaultValue("true")] bool calculateBounds, [DefaultValue("0")] int baseVertex)
Definition Mesh.cs:539
bool CheckCanAccessSubmesh(int submesh, bool errorAboutTriangles)
Definition Mesh.cs:465
void SetVertices(List< Vector3 > inVertices)
Definition Mesh.cs:324
static void Internal_Create([Writable] Mesh mono)
Definition Mesh.cs:19
void SetColors(List< Color32 > inColors)
Definition Mesh.cs:372
void SetVertices(List< Vector3 > inVertices, int start, int length, [DefaultValue("MeshUpdateFlags.Default")] MeshUpdateFlags flags)
Definition Mesh.cs:335
int[] GetIndices(int submesh)
Definition Mesh.cs:485
T[] GetAllocArrayFromChannel< T >(VertexAttribute A_1, VertexAttributeFormat A_2, int A_3)
Definition Mesh.cs:209
void SetSubMesh(int index, SubMeshDescriptor desc, MeshUpdateFlags flags=MeshUpdateFlags.Default)
Definition Mesh.cs:153
void SetColors(List< Color32 > inColors, int start, int length)
Definition Mesh.cs:379
void InternalSetIndexBufferDataFromArray(Array data, int dataStart, int meshBufferStart, int count, int elemSize, MeshUpdateFlags flags)
Definition Mesh.cs:44
void SetVertexBufferParamsFromArray(int vertexCount, params VertexAttributeDescriptor[] attributes)
Definition Mesh.cs:51
bool CheckCanAccessSubmeshIndices(int submesh)
Definition Mesh.cs:477
void SetTangents(List< Vector4 > inTangents, int start, int length)
Definition Mesh.cs:362
void SetTriangles(List< int > triangles, int submesh)
Definition Mesh.cs:524
bool CheckCanAccessSubmeshTriangles(int submesh)
Definition Mesh.cs:471
Color32[] colors32
Definition Mesh.cs:316
void RecalculateBoundsImpl(MeshUpdateFlags flags)
Definition Mesh.cs:177
void SetSubMesh_Injected(int index, SubMeshDescriptor desc, MeshUpdateFlags flags=MeshUpdateFlags.Default)
Definition Mesh.cs:589
void MarkDynamic()
Definition Mesh.cs:577
void RecalculateBounds()
Definition Mesh.cs:566
void set_bounds_Injected(Bounds value)
Definition Mesh.cs:595
void GetUVsImpl< T >(int uvIndex, List< T > uvs, int dim)
Definition Mesh.cs:428
int[] GetIndices(int submesh, [DefaultValue("true")] bool applyBaseVertex)
Definition Mesh.cs:491
void Clear([DefaultValue("true")] bool keepVertexLayout)
Definition Mesh.cs:552
void SetUVs(int channel, List< Vector2 > uvs, int start, int length, [DefaultValue("MeshUpdateFlags.Default")] MeshUpdateFlags flags)
Definition Mesh.cs:412
void SetIndicesImpl(int submesh, MeshTopology topology, IndexFormat indicesFormat, Array indices, int arrayStart, int arraySize, bool calculateBounds, int baseVertex)
Definition Mesh.cs:72
void SetTangents(List< Vector4 > inTangents)
Definition Mesh.cs:356
void SetIndexBufferParams(int indexCount, IndexFormat format)
Definition Mesh.cs:37
void SetTangents(List< Vector4 > inTangents, int start, int length, [DefaultValue("MeshUpdateFlags.Default")] MeshUpdateFlags flags)
Definition Mesh.cs:367
void GetArrayFromChannelImpl(VertexAttribute channel, VertexAttributeFormat format, int dim, Array values)
Definition Mesh.cs:107
void SetColors(List< Color32 > inColors, int start, int length, [DefaultValue("MeshUpdateFlags.Default")] MeshUpdateFlags flags)
Definition Mesh.cs:384
int subMeshCount
Definition Mesh.cs:138
void SetListForChannel< T >(VertexAttribute channel, VertexAttributeFormat format, int dim, List< T > values, int start, int length, MeshUpdateFlags flags)
Definition Mesh.cs:257
void SetSizedArrayForChannel(VertexAttribute channel, VertexAttributeFormat format, int dim, Array values, int valuesArrayLength, int valuesStart, int valuesCount, MeshUpdateFlags flags)
Definition Mesh.cs:251
void SetNormals(List< Vector3 > inNormals, int start, int length)
Definition Mesh.cs:346
Array GetAllocArrayFromChannelImpl(VertexAttribute channel, VertexAttributeFormat format, int dim)
Definition Mesh.cs:100
void SetNormals(List< Vector3 > inNormals)
Definition Mesh.cs:340
void SetUvsImpl< T >(int uvIndex, int dim, List< T > uvs, int start, int length, MeshUpdateFlags flags)
Definition Mesh.cs:390
void SetUVs(int channel, List< Vector4 > uvs, int start, int length)
Definition Mesh.cs:418
void Clear()
Definition Mesh.cs:559
int[] GetIndicesImpl(int submesh, bool applyBaseVertex)
Definition Mesh.cs:65
void PrintErrorCantAccessIndices()
Definition Mesh.cs:458
void SetNormals(List< Vector3 > inNormals, int start, int length, [DefaultValue("MeshUpdateFlags.Default")] MeshUpdateFlags flags)
Definition Mesh.cs:351
void SetVertexBufferParams(int vertexCount, params VertexAttributeDescriptor[] attributes)
Definition Mesh.cs:444
void GetUVs(int channel, List< Vector4 > uvs)
Definition Mesh.cs:439
void SetVertices(List< Vector3 > inVertices, int start, int length)
Definition Mesh.cs:330
void ClearImpl(bool keepVertexLayout)
Definition Mesh.cs:170
void SetVertexBufferData< T >(T[] data, int dataStart, int meshBufferStart, int count, int stream=0, MeshUpdateFlags flags=MeshUpdateFlags.Default)
Definition Mesh.cs:450
bool canAccess
Definition Mesh.cs:115
Vector3[] vertices
Definition Mesh.cs:286
Vector3[] normals
Definition Mesh.cs:296
int vertexCount
Definition Mesh.cs:126
void InternalSetVertexBufferDataFromArray(int stream, Array data, int dataStart, int meshBufferStart, int count, int elemSize, MeshUpdateFlags flags)
Definition Mesh.cs:58
void SetUVs(int channel, List< Vector2 > uvs, int start, int length)
Definition Mesh.cs:407
void SetTrianglesImpl(int submesh, IndexFormat indicesFormat, Array triangles, int trianglesArrayLength, int start, int length, bool calculateBounds, int baseVertex)
Definition Mesh.cs:516
bool HasVertexAttribute(VertexAttribute attr)
Definition Mesh.cs:86
void SetIndexBufferData< T >(T[] data, int dataStart, int meshBufferStart, int count, MeshUpdateFlags flags=MeshUpdateFlags.Default)
Definition Mesh.cs:499
void MarkDynamicImpl()
Definition Mesh.cs:184
void CheckIndicesArrayRange(int valuesLength, int start, int length)
Definition Mesh.cs:507
void GetListForChannel< T >(List< T > buffer, int capacity, VertexAttribute channel, int dim)
Definition Mesh.cs:270
static int DefaultDimensionForChannel(VertexAttribute channel)
Definition Mesh.cs:203
static Array ExtractArrayFromList(object list)