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
FlaxEditor.Scripting.ScriptType
baseType
The base type. |
System.Collections.Generic.List<FlaxEditor.Scripting.ScriptType>
result
The result collection. Elements will be added to it. Clear it before usage. |
System.Func<FlaxEditor.Scripting.ScriptType, System.Boolean>
checkFunc
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.String
typeName
The full name of the type. |
Returns
FlaxEditor.Scripting.ScriptType
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.Collections.Generic.List<FlaxEditor.Scripting.ScriptType>
result
The result collection. Elements will be added to it. Clear it before usage. |
System.Func<FlaxEditor.Scripting.ScriptType, System.Boolean>
checkFunc
Additional callback used to check if the given type is valid. Returns true if add type, otherwise false. |