Open
Description
There is some additional documentation needed for custom assets for users who want to create an external library not directly in their game project.
If the assembly is in a separate folder and solution you need to add a Module.cs
class with the below code for GameStudio to search for asset classes.
using System.Reflection;
using Stride.Core;
using Stride.Core.Reflection;
namespace Doprez.Stride.Items;
internal class Module
{
[ModuleInitializer]
public static void Initialize()
{
// "AssemblyCommonCategories.Assets" gets registered on startup of the project in GameStudio and allows the template to be created from a separate project.
AssemblyRegistry.Register(typeof(Module).GetTypeInfo().Assembly, AssemblyCommonCategories.Assets);
}
}
Make sure that the Module.cs
class is within the project that includes the asset class.
Metadata
Metadata
Assignees
Labels
No labels