Table of Contents

Class AssemblyHasScriptsAttribute

Namespace
Godot
Assembly
GodotSharp.dll

Attribute that determines that the assembly contains Godot scripts and, optionally, the collection of types that implement scripts; otherwise, retrieving the types requires lookup.

[AttributeUsage(AttributeTargets.Assembly)]
public sealed class AssemblyHasScriptsAttribute : Attribute
Inheritance
AssemblyHasScriptsAttribute
Inherited Members

Constructors

AssemblyHasScriptsAttribute()

Constructs a new AssemblyHasScriptsAttribute instance that requires lookup to get the Godot scripts.

public AssemblyHasScriptsAttribute()

AssemblyHasScriptsAttribute(Type[])

Constructs a new AssemblyHasScriptsAttribute instance that includes the Godot script types and requires no lookup.

public AssemblyHasScriptsAttribute(Type[] scriptTypes)

Parameters

scriptTypes Type[]

The collection of types that implement a Godot script.

Properties

RequiresLookup

If the Godot scripts contained in the assembly require lookup and can't rely on ScriptTypes.

public bool RequiresLookup { get; }

Property Value

bool

ScriptTypes

The collection of types that implement a Godot script.

public Type[]? ScriptTypes { get; }

Property Value

Type[]