| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>EventNode - Three.js Docs</title>
- <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
- <script src="../scripts/highlight.min.js"></script>
- <link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
- <link type="text/css" rel="stylesheet" href="../styles/page.css">
- </head>
- <body>
- <p class="inheritance" translate="no"><a href="EventDispatcher.html">EventDispatcher</a> → <a href="Node.html">Node</a> → </p>
- <h1 translate="no">EventNode</h1>
- <section>
- <header>
- <div class="class-description"><p>EventNode is a node that executes a callback during specific update phases.</p></div>
- </header>
- <article>
- <div class="container-overview">
- <h2>Constructor</h2>
- <h3 class="name name-method" id="EventNode" translate="no">new <a href="#EventNode">EventNode</a><span class="signature">( eventType : <span class="param-type">string</span>, callback : <span class="param-type">function</span> )</span> </h3>
- <div class="method">
- <div class="description">
- <p>Creates an EventNode.</p>
- </div>
- <table class="params">
- <tbody>
- <tr>
- <td class="name">
- <strong>eventType</strong>
- </td>
- <td class="description last">
- <p>The type of event</p>
- </td>
- </tr>
- <tr>
- <td class="name">
- <strong>callback</strong>
- </td>
- <td class="description last">
- <p>The callback to execute on update.</p>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <h2 class="subsection-title">Source</h2>
- <p>
- <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/utils/EventNode.js" translate="no" target="_blank" rel="noopener">src/nodes/utils/EventNode.js</a>
- </p>
- </article>
- </section>
- <script src="../scripts/linenumber.js"></script>
- <script src="../scripts/page.js"></script>
- </body>
- </html>
|