Table of Contents

Interface IAssemblyLoadCheck

Namespace
Stride.Core.Assets
Assembly
Stride.Core.Assets.dll

A check that an assembly of a package passes before the session loads it (AssemblyLoadCheck). The editor uses it to leave out a plugin built for a newer editor; the session itself checks nothing.

[Experimental("STREXP002")]
public interface IAssemblyLoadCheck
Extension Methods

Methods

CanLoad(Package, string, ILogger)

Whether the session may load an assembly of a package. Called before the assembly loads, once per assembly and session; an assembly the process has loaded already is not checked.

bool CanLoad(Package package, string assemblyPath, ILogger log)

Parameters

package Package

The package whose assembly it is.

assemblyPath string

The path of the assembly.

log ILogger

The log of the session's load, where the check says why it refuses an assembly.

Returns

bool

True to load the assembly; false to leave it out.