# Getting the entity This C# basics tutorial covers how to get the entity object. ## Explanation When a script is attached to an entity in the scene, we can access all properties of that Entity by using the 'Entity' property. We can for instance get the entity's name or we can check if the entity has a parent in the scene. ![Getting the entity example](media/getting-the-entity.png) ## Code You can find this sample in the tutorial project [!code-csharp[Entity](..\..\..\Tutorials\Tutorials\Basics\GettingTheEntity.cs)]