# Getting the entity You can find this sample in the tutorial project: **Scenes** -> **Getting an entity** ## Explanation This C# basics tutorial covers how to get the entity object. 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 [!code-csharp[Entity](..\..\..\Tutorials\C# Basics\CSharpBasics\Code\GettingTheEntity.cs)]