Andrew Meadowsarchive remaining JS scriptsc0b446c10 years agoHistory
28 lines · 625 B · JavaScript
RawDownload
////  hitEffect.js//  examples////  Created by Eric Levin on July 20, 2015//  Copyright 2015 High Fidelity, Inc.////  An example of how to toggle a screen-space hit effect using the Scene global object.////  Distributed under the Apache License, Version 2.0.//  See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html var hitEffectEnabled = false; toggleHitEffect(); function toggleHitEffect() {    Script.setTimeout(function() {      hitEffectEnabled = !hitEffectEnabled;      Scene.setEngineDisplayHitEffect(hitEffectEnabled);           toggleHitEffect();    }, 1000);}     

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t