diff --git a/src/components/InteractiveObjects/GenenricObject.js b/src/components/InteractiveObjects/GenenricObject.js index a2fd5a4..9ed900b 100644 --- a/src/components/InteractiveObjects/GenenricObject.js +++ b/src/components/InteractiveObjects/GenenricObject.js @@ -3,6 +3,15 @@ class GenericObject{ return new Promise(async(resolve, reject)=>{ this.source = await engine.load(data.$go.asset.name); this.object = this.source.scene; + + if (!data.exclude){ + engine.clickable.add(this.object, e=>{ + if (engine.dashboard && data.description){ + engine.dashboard.update({ hint: data.description }) + } + }); + } + resolve(this); }) } diff --git a/src/components/InteractiveObjects/GenericObject.vue b/src/components/InteractiveObjects/GenericObject.vue index 07ebe7b..6419f75 100644 --- a/src/components/InteractiveObjects/GenericObject.vue +++ b/src/components/InteractiveObjects/GenericObject.vue @@ -1,7 +1,8 @@