16 lines
501 B
JavaScript
16 lines
501 B
JavaScript
(function(){
|
|
|
|
return {
|
|
preload: function(id){
|
|
var position = Entities.getEntityProperties(id, ["position"]).position;
|
|
|
|
Entities.addEntity({
|
|
type: "Text",
|
|
text: "x: " + position.x + ", y: " + position.y + ", z: " + position.z,
|
|
lineHeight: 0.1,
|
|
textColor: {red: 50, green: 70, blue: 90},
|
|
backGroundColor: {red: 90, green: 70, blue: 50}
|
|
})
|
|
}
|
|
}
|
|
});
|