Interface IScriptTypesContainer
Interface for custom scripting languages types information containers that can inject types metadata into Editor.
Namespace: FlaxEditor.Scripting
Assembly: FlaxEngine.CSharp.dll
Syntax
public interface IScriptTypesContainer
Methods
GetDerivedTypes(ScriptType, List<ScriptType>, Func<ScriptType, Boolean>)
Gets all the derived types from the given base type (excluding that type) within all the loaded assemblies.
Declaration
void GetDerivedTypes(ScriptType baseType, List<ScriptType> result, Func<ScriptType, bool> checkFunc)
Parameters
Flax The base type. |
System. The result collection. Elements will be added to it. Clear it before usage. |
System. Additional callback used to check if the given type is valid. Returns true if add type, otherwise false. |
GetType(String)
Tries to get the object type from the given full typename. Searches in-build Flax Engine/Editor assemblies and game assemblies.
Declaration
ScriptType GetType(string typeName)
Parameters
System. The full name of the type. |
Returns
Flax The type or null if failed. |
GetTypes(List<ScriptType>, Func<ScriptType, Boolean>)
Gets all the types within all the loaded assemblies.
Declaration
void GetTypes(List<ScriptType> result, Func<ScriptType, bool> checkFunc)
Parameters
System. The result collection. Elements will be added to it. Clear it before usage. |
System. Additional callback used to check if the given type is valid. Returns true if add type, otherwise false. |