2017-09-12 17:42:36 -03:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								<?xml version="1.0" encoding="UTF-8" ?>  
						 
					
						
							
								
									
										
										
										
											2023-07-06 10:08:05 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								<class  name= "Mesh"  inherits= "Resource"  xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"  xsi:noNamespaceSchemaLocation= "../class.xsd" >  
						 
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									<brief_description > 
							 
						 
					
						
							
								
									
										
										
										
											2019-06-22 01:04:47 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										A [Resource] that contains vertex array-based geometry.
							 
						 
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									</brief_description> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									<description > 
							 
						 
					
						
							
								
									
										
										
										
											2019-06-22 01:04:47 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										Mesh is a type of [Resource] that contains vertex array-based geometry, divided in [i]surfaces[/i]. Each surface contains a completely separate array and a material used to draw it. Design wise, a mesh with multiple surfaces is preferred to a single surface, because objects created in 3D editing software commonly contain multiple materials.
							 
						 
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									</description> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									<tutorials > 
							 
						 
					
						
							
								
									
										
										
										
											2020-10-01 04:34:47 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<link  title= "3D Material Testers Demo" > https://godotengine.org/asset-library/asset/123</link> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<link  title= "3D Kinematic Character Demo" > https://godotengine.org/asset-library/asset/126</link> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<link  title= "3D Platformer Demo" > https://godotengine.org/asset-library/asset/125</link> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<link  title= "Third Person Shooter Demo" > https://godotengine.org/asset-library/asset/678</link> 
							 
						 
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									</tutorials> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									<methods > 
							 
						 
					
						
							
								
									
										
										
										
											2022-03-10 08:17:38 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<method  name= "_get_aabb"  qualifiers= "virtual const" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											<return  type= "AABB"  /> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											<description > 
							 
						 
					
						
							
								
									
										
										
										
											2023-02-24 15:03:35 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												Virtual method to override the [AABB] for a custom class extending [Mesh].
							 
						 
					
						
							
								
									
										
										
										
											2022-03-10 08:17:38 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											</description> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</method> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<method  name= "_get_blend_shape_count"  qualifiers= "virtual const" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											<return  type= "int"  /> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											<description > 
							 
						 
					
						
							
								
									
										
										
										
											2023-02-24 15:03:35 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												Virtual method to override the number of blend shapes for a custom class extending [Mesh].
							 
						 
					
						
							
								
									
										
										
										
											2022-03-10 08:17:38 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											</description> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</method> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<method  name= "_get_blend_shape_name"  qualifiers= "virtual const" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											<return  type= "StringName"  /> 
							 
						 
					
						
							
								
									
										
										
										
											2022-08-06 21:11:48 +03:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<param  index= "0"  name= "index"  type= "int"  /> 
							 
						 
					
						
							
								
									
										
										
										
											2022-03-10 08:17:38 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<description > 
							 
						 
					
						
							
								
									
										
										
										
											2023-02-24 15:03:35 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												Virtual method to override the retrieval of blend shape names for a custom class extending [Mesh].
							 
						 
					
						
							
								
									
										
										
										
											2022-03-10 08:17:38 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											</description> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</method> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<method  name= "_get_surface_count"  qualifiers= "virtual const" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											<return  type= "int"  /> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											<description > 
							 
						 
					
						
							
								
									
										
										
										
											2023-02-24 15:03:35 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												Virtual method to override the surface count for a custom class extending [Mesh].
							 
						 
					
						
							
								
									
										
										
										
											2022-03-10 08:17:38 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											</description> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</method> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<method  name= "_set_blend_shape_name"  qualifiers= "virtual" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											<return  type= "void"  /> 
							 
						 
					
						
							
								
									
										
										
										
											2022-08-06 21:11:48 +03:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<param  index= "0"  name= "index"  type= "int"  /> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											<param  index= "1"  name= "name"  type= "StringName"  /> 
							 
						 
					
						
							
								
									
										
										
										
											2022-03-10 08:17:38 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<description > 
							 
						 
					
						
							
								
									
										
										
										
											2023-02-24 15:03:35 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												Virtual method to override the names of blend shapes for a custom class extending [Mesh].
							 
						 
					
						
							
								
									
										
										
										
											2022-03-10 08:17:38 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											</description> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</method> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<method  name= "_surface_get_array_index_len"  qualifiers= "virtual const" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											<return  type= "int"  /> 
							 
						 
					
						
							
								
									
										
										
										
											2022-08-06 21:11:48 +03:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<param  index= "0"  name= "index"  type= "int"  /> 
							 
						 
					
						
							
								
									
										
										
										
											2022-03-10 08:17:38 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<description > 
							 
						 
					
						
							
								
									
										
										
										
											2023-02-24 15:03:35 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												Virtual method to override the surface array index length for a custom class extending [Mesh].
							 
						 
					
						
							
								
									
										
										
										
											2022-03-10 08:17:38 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											</description> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</method> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<method  name= "_surface_get_array_len"  qualifiers= "virtual const" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											<return  type= "int"  /> 
							 
						 
					
						
							
								
									
										
										
										
											2022-08-06 21:11:48 +03:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<param  index= "0"  name= "index"  type= "int"  /> 
							 
						 
					
						
							
								
									
										
										
										
											2022-03-10 08:17:38 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<description > 
							 
						 
					
						
							
								
									
										
										
										
											2023-02-24 15:03:35 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												Virtual method to override the surface array length for a custom class extending [Mesh].
							 
						 
					
						
							
								
									
										
										
										
											2022-03-10 08:17:38 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											</description> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</method> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<method  name= "_surface_get_arrays"  qualifiers= "virtual const" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											<return  type= "Array"  /> 
							 
						 
					
						
							
								
									
										
										
										
											2022-08-06 21:11:48 +03:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<param  index= "0"  name= "index"  type= "int"  /> 
							 
						 
					
						
							
								
									
										
										
										
											2022-03-10 08:17:38 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<description > 
							 
						 
					
						
							
								
									
										
										
										
											2023-02-24 15:03:35 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												Virtual method to override the surface arrays for a custom class extending [Mesh].
							 
						 
					
						
							
								
									
										
										
										
											2022-03-10 08:17:38 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											</description> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</method> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<method  name= "_surface_get_blend_shape_arrays"  qualifiers= "virtual const" > 
							 
						 
					
						
							
								
									
										
										
										
											2022-08-05 20:35:08 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<return  type= "Array[]"  /> 
							 
						 
					
						
							
								
									
										
										
										
											2022-08-06 21:11:48 +03:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<param  index= "0"  name= "index"  type= "int"  /> 
							 
						 
					
						
							
								
									
										
										
										
											2022-03-10 08:17:38 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<description > 
							 
						 
					
						
							
								
									
										
										
										
											2023-02-24 15:03:35 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												Virtual method to override the blend shape arrays for a custom class extending [Mesh].
							 
						 
					
						
							
								
									
										
										
										
											2022-03-10 08:17:38 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											</description> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</method> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<method  name= "_surface_get_format"  qualifiers= "virtual const" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											<return  type= "int"  /> 
							 
						 
					
						
							
								
									
										
										
										
											2022-08-06 21:11:48 +03:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<param  index= "0"  name= "index"  type= "int"  /> 
							 
						 
					
						
							
								
									
										
										
										
											2022-03-10 08:17:38 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<description > 
							 
						 
					
						
							
								
									
										
										
										
											2023-02-24 15:03:35 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												Virtual method to override the surface format for a custom class extending [Mesh].
							 
						 
					
						
							
								
									
										
										
										
											2022-03-10 08:17:38 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											</description> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</method> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<method  name= "_surface_get_lods"  qualifiers= "virtual const" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											<return  type= "Dictionary"  /> 
							 
						 
					
						
							
								
									
										
										
										
											2022-08-06 21:11:48 +03:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<param  index= "0"  name= "index"  type= "int"  /> 
							 
						 
					
						
							
								
									
										
										
										
											2022-03-10 08:17:38 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<description > 
							 
						 
					
						
							
								
									
										
										
										
											2023-02-24 15:03:35 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												Virtual method to override the surface LODs for a custom class extending [Mesh].
							 
						 
					
						
							
								
									
										
										
										
											2022-03-10 08:17:38 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											</description> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</method> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<method  name= "_surface_get_material"  qualifiers= "virtual const" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											<return  type= "Material"  /> 
							 
						 
					
						
							
								
									
										
										
										
											2022-08-06 21:11:48 +03:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<param  index= "0"  name= "index"  type= "int"  /> 
							 
						 
					
						
							
								
									
										
										
										
											2022-03-10 08:17:38 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<description > 
							 
						 
					
						
							
								
									
										
										
										
											2023-02-24 15:03:35 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												Virtual method to override the surface material for a custom class extending [Mesh].
							 
						 
					
						
							
								
									
										
										
										
											2022-03-10 08:17:38 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											</description> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</method> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<method  name= "_surface_get_primitive_type"  qualifiers= "virtual const" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											<return  type= "int"  /> 
							 
						 
					
						
							
								
									
										
										
										
											2022-08-06 21:11:48 +03:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<param  index= "0"  name= "index"  type= "int"  /> 
							 
						 
					
						
							
								
									
										
										
										
											2022-03-10 08:17:38 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<description > 
							 
						 
					
						
							
								
									
										
										
										
											2023-02-24 15:03:35 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												Virtual method to override the surface primitive type for a custom class extending [Mesh].
							 
						 
					
						
							
								
									
										
										
										
											2022-03-10 08:17:38 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											</description> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</method> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<method  name= "_surface_set_material"  qualifiers= "virtual" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											<return  type= "void"  /> 
							 
						 
					
						
							
								
									
										
										
										
											2022-08-06 21:11:48 +03:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<param  index= "0"  name= "index"  type= "int"  /> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											<param  index= "1"  name= "material"  type= "Material"  /> 
							 
						 
					
						
							
								
									
										
										
										
											2022-03-10 08:17:38 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<description > 
							 
						 
					
						
							
								
									
										
										
										
											2023-02-24 15:03:35 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												Virtual method to override the setting of a [param material] at the given [param index] for a custom class extending [Mesh].
							 
						 
					
						
							
								
									
										
										
										
											2022-03-10 08:17:38 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											</description> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</method> 
							 
						 
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										<method  name= "create_convex_shape"  qualifiers= "const" > 
							 
						 
					
						
							
								
									
										
										
										
											2022-11-25 11:43:06 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<return  type= "ConvexPolygonShape3D"  /> 
							 
						 
					
						
							
								
									
										
										
										
											2022-08-06 21:11:48 +03:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<param  index= "0"  name= "clean"  type= "bool"  default= "true"  /> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											<param  index= "1"  name= "simplify"  type= "bool"  default= "false"  /> 
							 
						 
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
											<description > 
							 
						 
					
						
							
								
									
										
										
										
											2020-03-30 18:22:57 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												Calculate a [ConvexPolygonShape3D] from the mesh.
							 
						 
					
						
							
								
									
										
										
										
											2022-08-12 09:36:48 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												If [param clean] is [code]true[/code] (default), duplicate and interior vertices are removed automatically. You can set it to [code]false[/code] to make the process faster if not needed.
							 
						 
					
						
							
								
									
										
										
										
											2022-08-17 18:08:09 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												If [param simplify] is [code]true[/code], the geometry can be further simplified to reduce the number of vertices. Disabled by default.
							 
						 
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
											</description> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</method> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<method  name= "create_outline"  qualifiers= "const" > 
							 
						 
					
						
							
								
									
										
										
										
											2021-07-30 15:28:05 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<return  type= "Mesh"  /> 
							 
						 
					
						
							
								
									
										
										
										
											2022-08-06 21:11:48 +03:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<param  index= "0"  name= "margin"  type= "float"  /> 
							 
						 
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
											<description > 
							 
						 
					
						
							
								
									
										
										
										
											2019-06-22 01:04:47 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												Calculate an outline mesh at a defined offset (margin) from the original mesh.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												[b]Note:[/b] This method typically returns the vertices in reverse order (e.g. clockwise to counterclockwise).
							 
						 
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
											</description> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</method> 
							 
						 
					
						
							
								
									
										
										
										
											2022-12-20 15:49:11 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<method  name= "create_placeholder"  qualifiers= "const" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											<return  type= "Resource"  /> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											<description > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												Creates a placeholder version of this resource ([PlaceholderMesh]).
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											</description> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</method> 
							 
						 
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										<method  name= "create_trimesh_shape"  qualifiers= "const" > 
							 
						 
					
						
							
								
									
										
										
										
											2022-11-25 11:43:06 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<return  type= "ConcavePolygonShape3D"  /> 
							 
						 
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
											<description > 
							 
						 
					
						
							
								
									
										
										
										
											2020-03-30 18:22:57 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												Calculate a [ConcavePolygonShape3D] from the mesh.
							 
						 
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
											</description> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</method> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<method  name= "generate_triangle_mesh"  qualifiers= "const" > 
							 
						 
					
						
							
								
									
										
										
										
											2021-07-30 15:28:05 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<return  type= "TriangleMesh"  /> 
							 
						 
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
											<description > 
							 
						 
					
						
							
								
									
										
										
										
											2022-05-31 13:47:02 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												Generate a [TriangleMesh] from the mesh. Considers only surfaces using one of these primitive types: [constant PRIMITIVE_TRIANGLES], [constant PRIMITIVE_TRIANGLE_STRIP].
							 
						 
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
											</description> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</method> 
							 
						 
					
						
							
								
									
										
										
										
											2019-12-07 21:23:05 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<method  name= "get_aabb"  qualifiers= "const" > 
							 
						 
					
						
							
								
									
										
										
										
											2021-07-30 15:28:05 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<return  type= "AABB"  /> 
							 
						 
					
						
							
								
									
										
										
										
											2019-12-07 21:23:05 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<description > 
							 
						 
					
						
							
								
									
										
										
										
											2022-10-05 11:09:54 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												Returns the smallest [AABB] enclosing this mesh in local space. Not affected by [code]custom_aabb[/code].
							 
						 
					
						
							
								
									
										
										
										
											2019-12-07 21:23:05 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												[b]Note:[/b] This is only implemented for [ArrayMesh] and [PrimitiveMesh].
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											</description> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</method> 
							 
						 
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										<method  name= "get_faces"  qualifiers= "const" > 
							 
						 
					
						
							
								
									
										
										
										
											2021-07-30 15:28:05 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<return  type= "PackedVector3Array"  /> 
							 
						 
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
											<description > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												Returns all the vertices that make up the faces of the mesh. Each three vertices represent one triangle.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											</description> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</method> 
							 
						 
					
						
							
								
									
										
										
										
											2018-08-29 21:02:48 +10:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<method  name= "get_surface_count"  qualifiers= "const" > 
							 
						 
					
						
							
								
									
										
										
										
											2021-07-30 15:28:05 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<return  type= "int"  /> 
							 
						 
					
						
							
								
									
										
										
										
											2018-08-29 21:02:48 +10:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<description > 
							 
						 
					
						
							
								
									
										
										
										
											2023-09-28 23:18:26 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												Returns the number of surfaces that the [Mesh] holds. This is equivalent to [method MeshInstance3D.get_surface_override_material_count].
							 
						 
					
						
							
								
									
										
										
										
											2018-08-29 21:02:48 +10:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											</description> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</method> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<method  name= "surface_get_arrays"  qualifiers= "const" > 
							 
						 
					
						
							
								
									
										
										
										
											2021-07-30 15:28:05 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<return  type= "Array"  /> 
							 
						 
					
						
							
								
									
										
										
										
											2022-08-06 21:11:48 +03:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<param  index= "0"  name= "surf_idx"  type= "int"  /> 
							 
						 
					
						
							
								
									
										
										
										
											2018-08-29 21:02:48 +10:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<description > 
							 
						 
					
						
							
								
									
										
										
										
											2023-09-28 23:18:26 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												Returns the arrays for the vertices, normals, UVs, etc. that make up the requested surface (see [method ArrayMesh.add_surface_from_arrays]).
							 
						 
					
						
							
								
									
										
										
										
											2018-08-29 21:02:48 +10:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											</description> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</method> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<method  name= "surface_get_blend_shape_arrays"  qualifiers= "const" > 
							 
						 
					
						
							
								
									
										
										
										
											2022-08-05 20:35:08 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<return  type= "Array[]"  /> 
							 
						 
					
						
							
								
									
										
										
										
											2022-08-06 21:11:48 +03:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<param  index= "0"  name= "surf_idx"  type= "int"  /> 
							 
						 
					
						
							
								
									
										
										
										
											2018-08-29 21:02:48 +10:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<description > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												Returns the blend shape arrays for the requested surface.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											</description> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</method> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<method  name= "surface_get_material"  qualifiers= "const" > 
							 
						 
					
						
							
								
									
										
										
										
											2021-07-30 15:28:05 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<return  type= "Material"  /> 
							 
						 
					
						
							
								
									
										
										
										
											2022-08-06 21:11:48 +03:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<param  index= "0"  name= "surf_idx"  type= "int"  /> 
							 
						 
					
						
							
								
									
										
										
										
											2018-08-29 21:02:48 +10:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<description > 
							 
						 
					
						
							
								
									
										
										
										
											2019-05-23 19:15:43 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												Returns a [Material] in a given surface. Surface is rendered using this material.
							 
						 
					
						
							
								
									
										
										
										
											2023-09-28 23:18:26 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												[b]Note:[/b] This returns the material within the [Mesh] resource, not the [Material] associated to the [MeshInstance3D]'s Surface Material Override properties. To get the [Material] associated to the [MeshInstance3D]'s Surface Material Override properties, use [method MeshInstance3D.get_surface_override_material] instead.
							 
						 
					
						
							
								
									
										
										
										
											2018-08-29 21:02:48 +10:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											</description> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</method> 
							 
						 
					
						
							
								
									
										
										
										
											2019-01-31 18:04:36 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<method  name= "surface_set_material" > 
							 
						 
					
						
							
								
									
										
										
										
											2021-07-30 15:28:05 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<return  type= "void"  /> 
							 
						 
					
						
							
								
									
										
										
										
											2022-08-06 21:11:48 +03:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<param  index= "0"  name= "surf_idx"  type= "int"  /> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											<param  index= "1"  name= "material"  type= "Material"  /> 
							 
						 
					
						
							
								
									
										
										
										
											2019-01-31 18:04:36 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											<description > 
							 
						 
					
						
							
								
									
										
										
										
											2019-06-22 01:04:47 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												Sets a [Material] for a given surface. Surface will be rendered using this material.
							 
						 
					
						
							
								
									
										
										
										
											2023-09-28 23:18:26 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												[b]Note:[/b] This assigns the material within the [Mesh] resource, not the [Material] associated to the [MeshInstance3D]'s Surface Material Override properties. To set the [Material] associated to the [MeshInstance3D]'s Surface Material Override properties, use [method MeshInstance3D.set_surface_override_material] instead.
							 
						 
					
						
							
								
									
										
										
										
											2019-01-31 18:04:36 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											</description> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</method> 
							 
						 
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									</methods> 
							 
						 
					
						
							
								
									
										
										
										
											2017-12-10 00:43:30 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
									<members > 
							 
						 
					
						
							
								
									
										
										
										
											2022-11-06 13:27:24 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<member  name= "lightmap_size_hint"  type= "Vector2i"  setter= "set_lightmap_size_hint"  getter= "get_lightmap_size_hint"  default= "Vector2i(0, 0)" > 
							 
						 
					
						
							
								
									
										
										
										
											2020-02-12 09:59:06 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											Sets a hint to be used for lightmap resolution.
							 
						 
					
						
							
								
									
										
										
										
											2017-12-10 00:43:30 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</member> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									</members> 
							 
						 
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									<constants > 
							 
						 
					
						
							
								
									
										
										
										
											2017-11-24 23:16:30 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<constant  name= "PRIMITIVE_POINTS"  value= "0"  enum= "PrimitiveType" > 
							 
						 
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
											Render array as points (one vertex equals one point).
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
									
										
										
										
											2017-11-24 23:16:30 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<constant  name= "PRIMITIVE_LINES"  value= "1"  enum= "PrimitiveType" > 
							 
						 
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
											Render array as lines (every two vertices a line is created).
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
									
										
										
										
											2017-11-24 23:16:30 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<constant  name= "PRIMITIVE_LINE_STRIP"  value= "2"  enum= "PrimitiveType" > 
							 
						 
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
											Render array as line strip.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
									
										
										
										
											2020-02-12 09:59:06 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<constant  name= "PRIMITIVE_TRIANGLES"  value= "3"  enum= "PrimitiveType" > 
							 
						 
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
											Render array as triangles (every three vertices a triangle is created).
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
									
										
										
										
											2020-02-12 09:59:06 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<constant  name= "PRIMITIVE_TRIANGLE_STRIP"  value= "4"  enum= "PrimitiveType" > 
							 
						 
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
											Render array as triangle strips.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
									
										
										
										
											2020-12-04 15:54:48 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<constant  name= "ARRAY_VERTEX"  value= "0"  enum= "ArrayType" > 
							 
						 
					
						
							
								
									
										
										
										
											2020-12-04 19:26:29 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											[PackedVector3Array], [PackedVector2Array], or [Array] of vertex positions.
							 
						 
					
						
							
								
									
										
										
										
											2020-12-04 15:54:48 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<constant  name= "ARRAY_NORMAL"  value= "1"  enum= "ArrayType" > 
							 
						 
					
						
							
								
									
										
										
										
											2020-12-04 19:26:29 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											[PackedVector3Array] of vertex normals.
							 
						 
					
						
							
								
									
										
										
										
											2020-12-04 15:54:48 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<constant  name= "ARRAY_TANGENT"  value= "2"  enum= "ArrayType" > 
							 
						 
					
						
							
								
									
										
										
										
											2020-12-04 19:26:29 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											[PackedFloat32Array] of vertex tangents. Each element in groups of 4 floats, first 3 floats determine the tangent, and the last the binormal direction as -1 or 1.
							 
						 
					
						
							
								
									
										
										
										
											2020-12-04 15:54:48 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<constant  name= "ARRAY_COLOR"  value= "3"  enum= "ArrayType" > 
							 
						 
					
						
							
								
									
										
										
										
											2020-12-04 19:26:29 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											[PackedColorArray] of vertex colors.
							 
						 
					
						
							
								
									
										
										
										
											2020-12-04 15:54:48 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<constant  name= "ARRAY_TEX_UV"  value= "4"  enum= "ArrayType" > 
							 
						 
					
						
							
								
									
										
										
										
											2020-12-04 19:26:29 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											[PackedVector2Array] for UV coordinates.
							 
						 
					
						
							
								
									
										
										
										
											2020-12-04 15:54:48 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<constant  name= "ARRAY_TEX_UV2"  value= "5"  enum= "ArrayType" > 
							 
						 
					
						
							
								
									
										
										
										
											2020-12-04 19:26:29 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											[PackedVector2Array] for second UV coordinates.
							 
						 
					
						
							
								
									
										
										
										
											2020-12-04 15:54:48 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<constant  name= "ARRAY_CUSTOM0"  value= "6"  enum= "ArrayType" > 
							 
						 
					
						
							
								
									
										
										
										
											2024-02-05 14:32:10 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											Contains custom color channel 0. [PackedByteArray] if [code](format > >  Mesh.ARRAY_FORMAT_CUSTOM0_SHIFT) &  Mesh.ARRAY_FORMAT_CUSTOM_MASK[/code] is [constant ARRAY_CUSTOM_RGBA8_UNORM], [constant ARRAY_CUSTOM_RGBA8_SNORM], [constant ARRAY_CUSTOM_RG_HALF], or [constant ARRAY_CUSTOM_RGBA_HALF]. [PackedFloat32Array] otherwise.
							 
						 
					
						
							
								
									
										
										
										
											2020-12-04 15:54:48 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<constant  name= "ARRAY_CUSTOM1"  value= "7"  enum= "ArrayType" > 
							 
						 
					
						
							
								
									
										
										
										
											2024-02-05 14:32:10 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											Contains custom color channel 1. [PackedByteArray] if [code](format > >  Mesh.ARRAY_FORMAT_CUSTOM1_SHIFT) &  Mesh.ARRAY_FORMAT_CUSTOM_MASK[/code] is [constant ARRAY_CUSTOM_RGBA8_UNORM], [constant ARRAY_CUSTOM_RGBA8_SNORM], [constant ARRAY_CUSTOM_RG_HALF], or [constant ARRAY_CUSTOM_RGBA_HALF]. [PackedFloat32Array] otherwise.
							 
						 
					
						
							
								
									
										
										
										
											2020-12-04 15:54:48 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<constant  name= "ARRAY_CUSTOM2"  value= "8"  enum= "ArrayType" > 
							 
						 
					
						
							
								
									
										
										
										
											2024-02-05 14:32:10 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											Contains custom color channel 2. [PackedByteArray] if [code](format > >  Mesh.ARRAY_FORMAT_CUSTOM2_SHIFT) &  Mesh.ARRAY_FORMAT_CUSTOM_MASK[/code] is [constant ARRAY_CUSTOM_RGBA8_UNORM], [constant ARRAY_CUSTOM_RGBA8_SNORM], [constant ARRAY_CUSTOM_RG_HALF], or [constant ARRAY_CUSTOM_RGBA_HALF]. [PackedFloat32Array] otherwise.
							 
						 
					
						
							
								
									
										
										
										
											2020-12-04 15:54:48 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<constant  name= "ARRAY_CUSTOM3"  value= "9"  enum= "ArrayType" > 
							 
						 
					
						
							
								
									
										
										
										
											2024-02-05 14:32:10 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											Contains custom color channel 3. [PackedByteArray] if [code](format > >  Mesh.ARRAY_FORMAT_CUSTOM3_SHIFT) &  Mesh.ARRAY_FORMAT_CUSTOM_MASK[/code] is [constant ARRAY_CUSTOM_RGBA8_UNORM], [constant ARRAY_CUSTOM_RGBA8_SNORM], [constant ARRAY_CUSTOM_RG_HALF], or [constant ARRAY_CUSTOM_RGBA_HALF]. [PackedFloat32Array] otherwise.
							 
						 
					
						
							
								
									
										
										
										
											2020-12-04 15:54:48 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<constant  name= "ARRAY_BONES"  value= "10"  enum= "ArrayType" > 
							 
						 
					
						
							
								
									
										
										
										
											2023-01-17 12:48:10 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											[PackedFloat32Array] or [PackedInt32Array] of bone indices. Contains either 4 or 8 numbers per vertex depending on the presence of the [constant ARRAY_FLAG_USE_8_BONE_WEIGHTS] flag.
							 
						 
					
						
							
								
									
										
										
										
											2020-12-04 15:54:48 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<constant  name= "ARRAY_WEIGHTS"  value= "11"  enum= "ArrayType" > 
							 
						 
					
						
							
								
									
										
										
										
											2023-01-17 12:48:10 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											[PackedFloat32Array] or [PackedFloat64Array] of bone weights in the range [code]0.0[/code] to [code]1.0[/code] (inclusive). Contains either 4 or 8 numbers per vertex depending on the presence of the [constant ARRAY_FLAG_USE_8_BONE_WEIGHTS] flag.
							 
						 
					
						
							
								
									
										
										
										
											2020-12-04 15:54:48 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<constant  name= "ARRAY_INDEX"  value= "12"  enum= "ArrayType" > 
							 
						 
					
						
							
								
									
										
										
										
											2023-08-01 16:52:37 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											[PackedInt32Array] of integers used as indices referencing vertices, colors, normals, tangents, and textures. All of those arrays must have the same number of elements as the vertex array. No index can be beyond the vertex array size. When this index array is present, it puts the function into "index mode," where the index selects the [i]i[/i]'th vertex, normal, tangent, color, UV, etc. This means if you want to have different normals or colors along an edge, you have to duplicate the vertices.
							 
						 
					
						
							
								
									
										
										
										
											2020-12-04 19:26:29 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											For triangles, the index array is interpreted as triples, referring to the vertices of each triangle. For lines, the index array is in pairs indicating the start and end of each line.
							 
						 
					
						
							
								
									
										
										
										
											2020-12-04 15:54:48 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<constant  name= "ARRAY_MAX"  value= "13"  enum= "ArrayType" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											Represents the size of the [enum ArrayType] enum.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<constant  name= "ARRAY_CUSTOM_RGBA8_UNORM"  value= "0"  enum= "ArrayCustomFormat" > 
							 
						 
					
						
							
								
									
										
										
										
											2022-06-11 16:15:44 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											Indicates this custom channel contains unsigned normalized byte colors from 0 to 1, encoded as [PackedByteArray].
							 
						 
					
						
							
								
									
										
										
										
											2020-12-04 15:54:48 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<constant  name= "ARRAY_CUSTOM_RGBA8_SNORM"  value= "1"  enum= "ArrayCustomFormat" > 
							 
						 
					
						
							
								
									
										
										
										
											2022-06-11 16:15:44 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											Indicates this custom channel contains signed normalized byte colors from -1 to 1, encoded as [PackedByteArray].
							 
						 
					
						
							
								
									
										
										
										
											2020-12-04 15:54:48 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<constant  name= "ARRAY_CUSTOM_RG_HALF"  value= "2"  enum= "ArrayCustomFormat" > 
							 
						 
					
						
							
								
									
										
										
										
											2022-06-11 16:15:44 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											Indicates this custom channel contains half precision float colors, encoded as [PackedByteArray]. Only red and green channels are used.
							 
						 
					
						
							
								
									
										
										
										
											2020-12-04 15:54:48 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<constant  name= "ARRAY_CUSTOM_RGBA_HALF"  value= "3"  enum= "ArrayCustomFormat" > 
							 
						 
					
						
							
								
									
										
										
										
											2022-06-11 16:15:44 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											Indicates this custom channel contains half precision float colors, encoded as [PackedByteArray].
							 
						 
					
						
							
								
									
										
										
										
											2020-12-04 15:54:48 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<constant  name= "ARRAY_CUSTOM_R_FLOAT"  value= "4"  enum= "ArrayCustomFormat" > 
							 
						 
					
						
							
								
									
										
										
										
											2023-02-24 10:42:07 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											Indicates this custom channel contains full float colors, in a [PackedFloat32Array]. Only the red channel is used.
							 
						 
					
						
							
								
									
										
										
										
											2020-12-04 15:54:48 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<constant  name= "ARRAY_CUSTOM_RG_FLOAT"  value= "5"  enum= "ArrayCustomFormat" > 
							 
						 
					
						
							
								
									
										
										
										
											2022-06-11 16:15:44 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											Indicates this custom channel contains full float colors, in a [PackedFloat32Array]. Only red and green channels are used.
							 
						 
					
						
							
								
									
										
										
										
											2020-12-04 15:54:48 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<constant  name= "ARRAY_CUSTOM_RGB_FLOAT"  value= "6"  enum= "ArrayCustomFormat" > 
							 
						 
					
						
							
								
									
										
										
										
											2022-06-11 16:15:44 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											Indicates this custom channel contains full float colors, in a [PackedFloat32Array]. Only red, green and blue channels are used.
							 
						 
					
						
							
								
									
										
										
										
											2020-12-04 15:54:48 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<constant  name= "ARRAY_CUSTOM_RGBA_FLOAT"  value= "7"  enum= "ArrayCustomFormat" > 
							 
						 
					
						
							
								
									
										
										
										
											2022-06-11 16:15:44 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											Indicates this custom channel contains full float colors, in a [PackedFloat32Array].
							 
						 
					
						
							
								
									
										
										
										
											2020-12-04 15:54:48 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<constant  name= "ARRAY_CUSTOM_MAX"  value= "8"  enum= "ArrayCustomFormat" > 
							 
						 
					
						
							
								
									
										
										
										
											2020-12-04 19:26:29 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											Represents the size of the [enum ArrayCustomFormat] enum.
							 
						 
					
						
							
								
									
										
										
										
											2020-12-04 15:54:48 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
									
										
										
										
											2023-01-07 20:37:21 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<constant  name= "ARRAY_FORMAT_VERTEX"  value= "1"  enum= "ArrayFormat"  is_bitfield= "true" > 
							 
						 
					
						
							
								
									
										
										
										
											2020-01-14 13:27:14 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											Mesh array contains vertices. All meshes require a vertex array so this should always be present.
							 
						 
					
						
							
								
									
										
										
										
											2017-09-16 01:46:14 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
									
										
										
										
											2023-01-07 20:37:21 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<constant  name= "ARRAY_FORMAT_NORMAL"  value= "2"  enum= "ArrayFormat"  is_bitfield= "true" > 
							 
						 
					
						
							
								
									
										
										
										
											2020-01-14 13:27:14 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											Mesh array contains normals.
							 
						 
					
						
							
								
									
										
										
										
											2017-09-16 01:46:14 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
									
										
										
										
											2023-01-07 20:37:21 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<constant  name= "ARRAY_FORMAT_TANGENT"  value= "4"  enum= "ArrayFormat"  is_bitfield= "true" > 
							 
						 
					
						
							
								
									
										
										
										
											2020-01-14 13:27:14 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											Mesh array contains tangents.
							 
						 
					
						
							
								
									
										
										
										
											2017-09-16 01:46:14 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
									
										
										
										
											2023-01-07 20:37:21 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<constant  name= "ARRAY_FORMAT_COLOR"  value= "8"  enum= "ArrayFormat"  is_bitfield= "true" > 
							 
						 
					
						
							
								
									
										
										
										
											2020-01-14 13:27:14 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											Mesh array contains colors.
							 
						 
					
						
							
								
									
										
										
										
											2017-09-16 01:46:14 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
									
										
										
										
											2023-01-07 20:37:21 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<constant  name= "ARRAY_FORMAT_TEX_UV"  value= "16"  enum= "ArrayFormat"  is_bitfield= "true" > 
							 
						 
					
						
							
								
									
										
										
										
											2020-01-14 13:27:14 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											Mesh array contains UVs.
							 
						 
					
						
							
								
									
										
										
										
											2017-09-16 01:46:14 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
									
										
										
										
											2023-01-07 20:37:21 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<constant  name= "ARRAY_FORMAT_TEX_UV2"  value= "32"  enum= "ArrayFormat"  is_bitfield= "true" > 
							 
						 
					
						
							
								
									
										
										
										
											2020-01-14 13:27:14 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											Mesh array contains second UV.
							 
						 
					
						
							
								
									
										
										
										
											2017-09-16 01:46:14 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
									
										
										
										
											2023-01-07 20:37:21 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<constant  name= "ARRAY_FORMAT_CUSTOM0"  value= "64"  enum= "ArrayFormat"  is_bitfield= "true" > 
							 
						 
					
						
							
								
									
										
										
										
											2022-06-11 16:15:44 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											Mesh array contains custom channel index 0.
							 
						 
					
						
							
								
									
										
										
										
											2017-09-16 01:46:14 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
									
										
										
										
											2023-01-07 20:37:21 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<constant  name= "ARRAY_FORMAT_CUSTOM1"  value= "128"  enum= "ArrayFormat"  is_bitfield= "true" > 
							 
						 
					
						
							
								
									
										
										
										
											2022-06-11 16:15:44 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											Mesh array contains custom channel index 1.
							 
						 
					
						
							
								
									
										
										
										
											2017-09-16 01:46:14 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
									
										
										
										
											2023-01-07 20:37:21 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<constant  name= "ARRAY_FORMAT_CUSTOM2"  value= "256"  enum= "ArrayFormat"  is_bitfield= "true" > 
							 
						 
					
						
							
								
									
										
										
										
											2022-06-11 16:15:44 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											Mesh array contains custom channel index 2.
							 
						 
					
						
							
								
									
										
										
										
											2017-09-16 01:46:14 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
									
										
										
										
											2023-01-07 20:37:21 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<constant  name= "ARRAY_FORMAT_CUSTOM3"  value= "512"  enum= "ArrayFormat"  is_bitfield= "true" > 
							 
						 
					
						
							
								
									
										
										
										
											2022-06-11 16:15:44 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											Mesh array contains custom channel index 3.
							 
						 
					
						
							
								
									
										
										
										
											2017-09-16 01:46:14 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
									
										
										
										
											2023-01-07 20:37:21 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<constant  name= "ARRAY_FORMAT_BONES"  value= "1024"  enum= "ArrayFormat"  is_bitfield= "true" > 
							 
						 
					
						
							
								
									
										
										
										
											2020-12-04 15:54:48 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											Mesh array contains bones.
							 
						 
					
						
							
								
									
										
										
										
											2017-09-16 01:46:14 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
									
										
										
										
											2023-01-07 20:37:21 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<constant  name= "ARRAY_FORMAT_WEIGHTS"  value= "2048"  enum= "ArrayFormat"  is_bitfield= "true" > 
							 
						 
					
						
							
								
									
										
										
										
											2020-12-04 15:54:48 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											Mesh array contains bone weights.
							 
						 
					
						
							
								
									
										
										
										
											2017-09-16 01:46:14 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
									
										
										
										
											2023-01-07 20:37:21 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<constant  name= "ARRAY_FORMAT_INDEX"  value= "4096"  enum= "ArrayFormat"  is_bitfield= "true" > 
							 
						 
					
						
							
								
									
										
										
										
											2020-12-04 15:54:48 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											Mesh array uses indices.
							 
						 
					
						
							
								
									
										
										
										
											2017-09-16 01:46:14 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
									
										
										
										
											2023-01-07 20:37:21 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<constant  name= "ARRAY_FORMAT_BLEND_SHAPE_MASK"  value= "7"  enum= "ArrayFormat"  is_bitfield= "true" > 
							 
						 
					
						
							
								
									
										
										
										
											2022-06-11 16:15:44 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											Mask of mesh channels permitted in blend shapes.
							 
						 
					
						
							
								
									
										
										
										
											2017-09-16 01:46:14 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
									
										
										
										
											2023-01-07 20:37:21 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<constant  name= "ARRAY_FORMAT_CUSTOM_BASE"  value= "13"  enum= "ArrayFormat"  is_bitfield= "true" > 
							 
						 
					
						
							
								
									
										
										
										
											2022-06-11 16:15:44 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											Shift of first custom channel.
							 
						 
					
						
							
								
									
										
										
										
											2017-09-16 01:46:14 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
									
										
										
										
											2023-01-07 20:37:21 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<constant  name= "ARRAY_FORMAT_CUSTOM_BITS"  value= "3"  enum= "ArrayFormat"  is_bitfield= "true" > 
							 
						 
					
						
							
								
									
										
										
										
											2022-06-11 16:15:44 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											Number of format bits per custom channel. See [enum ArrayCustomFormat].
							 
						 
					
						
							
								
									
										
										
										
											2021-09-08 21:29:14 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
									
										
										
										
											2023-01-07 20:37:21 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<constant  name= "ARRAY_FORMAT_CUSTOM0_SHIFT"  value= "13"  enum= "ArrayFormat"  is_bitfield= "true" > 
							 
						 
					
						
							
								
									
										
										
										
											2022-06-11 16:15:44 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											Amount to shift [enum ArrayCustomFormat] for custom channel index 0.
							 
						 
					
						
							
								
									
										
										
										
											2017-09-16 01:46:14 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
									
										
										
										
											2023-01-07 20:37:21 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<constant  name= "ARRAY_FORMAT_CUSTOM1_SHIFT"  value= "16"  enum= "ArrayFormat"  is_bitfield= "true" > 
							 
						 
					
						
							
								
									
										
										
										
											2022-06-11 16:15:44 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											Amount to shift [enum ArrayCustomFormat] for custom channel index 1.
							 
						 
					
						
							
								
									
										
										
										
											2017-09-16 01:46:14 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
									
										
										
										
											2023-01-07 20:37:21 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<constant  name= "ARRAY_FORMAT_CUSTOM2_SHIFT"  value= "19"  enum= "ArrayFormat"  is_bitfield= "true" > 
							 
						 
					
						
							
								
									
										
										
										
											2022-06-11 16:15:44 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											Amount to shift [enum ArrayCustomFormat] for custom channel index 2.
							 
						 
					
						
							
								
									
										
										
										
											2017-09-16 01:46:14 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
									
										
										
										
											2023-01-07 20:37:21 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<constant  name= "ARRAY_FORMAT_CUSTOM3_SHIFT"  value= "22"  enum= "ArrayFormat"  is_bitfield= "true" > 
							 
						 
					
						
							
								
									
										
										
										
											2022-06-11 16:15:44 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											Amount to shift [enum ArrayCustomFormat] for custom channel index 3.
							 
						 
					
						
							
								
									
										
										
										
											2017-09-16 01:46:14 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
									
										
										
										
											2023-01-07 20:37:21 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<constant  name= "ARRAY_FORMAT_CUSTOM_MASK"  value= "7"  enum= "ArrayFormat"  is_bitfield= "true" > 
							 
						 
					
						
							
								
									
										
										
										
											2022-06-11 16:15:44 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											Mask of custom format bits per custom channel. Must be shifted by one of the SHIFT constants. See [enum ArrayCustomFormat].
							 
						 
					
						
							
								
									
										
										
										
											2017-09-16 01:46:14 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
									
										
										
										
											2023-01-07 20:37:21 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<constant  name= "ARRAY_COMPRESS_FLAGS_BASE"  value= "25"  enum= "ArrayFormat"  is_bitfield= "true" > 
							 
						 
					
						
							
								
									
										
										
										
											2022-06-11 16:15:44 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											Shift of first compress flag. Compress flags should be passed to [method ArrayMesh.add_surface_from_arrays] and [method SurfaceTool.commit].
							 
						 
					
						
							
								
									
										
										
										
											2017-09-16 01:46:14 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
									
										
										
										
											2023-01-07 20:37:21 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<constant  name= "ARRAY_FLAG_USE_2D_VERTICES"  value= "33554432"  enum= "ArrayFormat"  is_bitfield= "true" > 
							 
						 
					
						
							
								
									
										
										
										
											2020-12-04 15:54:48 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											Flag used to mark that the array contains 2D vertices.
							 
						 
					
						
							
								
									
										
										
										
											2017-09-16 01:46:14 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
									
										
										
										
											2023-01-07 20:37:21 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<constant  name= "ARRAY_FLAG_USE_DYNAMIC_UPDATE"  value= "67108864"  enum= "ArrayFormat"  is_bitfield= "true" > 
							 
						 
					
						
							
								
									
										
										
										
											2022-06-11 16:15:44 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											Flag indices that the mesh data will use [code]GL_DYNAMIC_DRAW[/code] on GLES. Unused on Vulkan.
							 
						 
					
						
							
								
									
										
										
										
											2017-09-16 01:46:14 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
									
										
										
										
											2023-01-07 20:37:21 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<constant  name= "ARRAY_FLAG_USE_8_BONE_WEIGHTS"  value= "134217728"  enum= "ArrayFormat"  is_bitfield= "true" > 
							 
						 
					
						
							
								
									
										
										
										
											2022-06-11 16:15:44 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											Flag used to mark that the mesh contains up to 8 bone influences per vertex. This flag indicates that [constant ARRAY_BONES] and [constant ARRAY_WEIGHTS] elements will have double length.
							 
						 
					
						
							
								
									
										
										
										
											2017-09-16 01:46:14 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
									
										
										
										
											2023-01-17 12:48:10 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<constant  name= "ARRAY_FLAG_USES_EMPTY_VERTEX_ARRAY"  value= "268435456"  enum= "ArrayFormat"  is_bitfield= "true" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											Flag used to mark that the mesh intentionally contains no vertex array.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
									
										
										
										
											2023-10-29 18:18:18 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<constant  name= "ARRAY_FLAG_COMPRESS_ATTRIBUTES"  value= "536870912"  enum= "ArrayFormat"  is_bitfield= "true" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											Flag used to mark that a mesh is using compressed attributes (vertices, normals, tangents, UVs). When this form of compression is enabled, vertex positions will be packed into an RGBA16UNORM attribute and scaled in the vertex shader. The normal and tangent will be packed into an RG16UNORM representing an axis, and a 16-bit float stored in the A-channel of the vertex. UVs will use 16-bit normalized floats instead of full 32-bit signed floats. When using this compression mode you must use either vertices, normals, and tangents or only vertices. You cannot use normals without tangents. Importers will automatically enable this compression if they can.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
									
										
										
										
											2021-01-04 14:33:44 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<constant  name= "BLEND_SHAPE_MODE_NORMALIZED"  value= "0"  enum= "BlendShapeMode" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											Blend shapes are normalized.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<constant  name= "BLEND_SHAPE_MODE_RELATIVE"  value= "1"  enum= "BlendShapeMode" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											Blend shapes are relative to base weight.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</constant> 
							 
						 
					
						
							
								
									
										
										
										
											2017-09-12 17:42:36 -03:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									</constants> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								</class>