content/hifi-content/Experiences/Releases/usefulUtilities/userLocation/2019-04-02_09-52-00/userLocationTextLocalEntity.js
2022-02-13 23:16:46 +01:00

18 lines
587 B
JavaScript

//
// userLocationTextLocalEntity.js
//
// Created by Zach Fox on 2019-04-02
// Copyright 2019 High Fidelity, Inc.
//
// See accompanying README.md for usage instructions.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
(function () {
this.mousePressOnEntity = function(entityID, event) {
var parentID = Entities.getEntityProperties(entityID, ["parentID"]).parentID;
Entities.callEntityMethod(parentID, "forwardMousePress", [JSON.stringify(event)]);
};
});