get entity count from engine through code #1345
-
in this section of the manual: https://doc.stride3d.net/4.0/en/manual/engine/entity-component-model/managing-entities.html |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hello @JustAnotherGameDevWasTaken, C# is not difficult to learn but obviously everything takes some time to learn 😀. There are nice tutorials out there.. e.g. https://dotnet.microsoft.com/en-us/learn/csharp Regarding your question, I think there are 2 ways. public class YourScript : StartupScript
{
public override void Start()
{
var sceneEntities1 = Entity.Scene.Entities;
var sceneEntities2 = SceneSystem.SceneInstance.RootScene.Entities;
}
} |
Beta Was this translation helpful? Give feedback.
Hello @JustAnotherGameDevWasTaken,
C# is not difficult to learn but obviously everything takes some time to learn 😀. There are nice tutorials out there.. e.g. https://dotnet.microsoft.com/en-us/learn/csharp
Regarding your question, I think there are 2 ways.