You can find this sample in the tutorial project: Menu → Transform Position
This C# Beginner tutorial covers the Transform component of an entity.
The Transform component is such a commonly used component, that you can quick access it via Entity.Transform.
The transform contains all kinds of properties and methods for Position, Rotation and Scale. In this example we learn the difference between local and world position.
[!code-csharpEntity]