Stride Forums Archive

Code Only Confusion

2 posts, 1725 views, 2019-12-13 to 2020-02-10

FrostyFeet 2019-12-13 #1

Hello all, I have created a code only project and everything was going well until I created a scene and tried to add things to it. I can create entities without any components. I think the errors are caused by the missing .xkpkg resources. I’m looking for a workaround for this problem. It would be a huge pain if I couldn’t even use the built-in scene system.

Creating a Procedural Cube

var modelDescriptor = new ProceduralModelDescriptor(new CubeProceduralModel());
modelDescriptor.GenerateModel(Services, model);

Following Error

One or more errors occurred. (One or more errors occurred. (Unable to find shader [ComputeColorConstantColorLink]))

Creating a Light

var lightEntity = new Entity()
{
new LightComponent()
};
scene.Entities.Add(lightEntity);

Following Error

One or more errors occurred. (One or more errors occurred. (Unable to find shader [LightDirectionalGroup]))

Yuuki_terumi (DIO) 2020-02-10 #2

Check this out, if you have any issue please tell me :wink: