MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetElementType

Method GetElementType

Source/Editor/Scripting/ScriptType.cs:1126–1133  ·  view source on GitHub ↗

When overridden in a derived class, returns the type of the object encompassed or referred to by the current array, pointer or reference type. The type of the object encompassed or referred to by the current array, pointer, or reference type, or if the current type is not an array or a pointer, or is not passed by reference, or represents a gen

()

Source from the content-addressed store, hash-verified

1124 /// </summary>
1125 /// <returns>The type of the object encompassed or referred to by the current array, pointer, or reference type, or <see langword="null" /> if the current type is not an array or a pointer, or is not passed by reference, or represents a generic type or a type parameter in the definition of a generic type or generic method.</returns>
1126 public ScriptType GetElementType()
1127 {
1128 if (_managed != null)
1129 return new ScriptType(_managed.GetElementType());
1130 if (_custom is ScriptTypeArray array)
1131 return array.ElementType;
1132 return Null;
1133 }
1134
1135 /// <summary>
1136 /// Returns an array of type objects that represent the type arguments of a closed generic type or the type parameters of a generic type definition.

Callers 13

GetConnectionColorMethod · 0.45
UpdateUIMethod · 0.45
GetArrayItemTypeMethod · 0.45
EntryClass · 0.45
GetEntriesMethod · 0.45
GetXmlKeyMethod · 0.45
CollectionEditorClass · 0.45
OnDragDropMethod · 0.45
AllocateMethod · 0.45
ResizeMethod · 0.45
CloneValuesMethod · 0.45
OnParamContextMenuMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected