script-node-properties.rst 1008 B

12345678910111213141516171819202122
  1. .. include:: ../_header.rst
  2. ScriptNode's properties
  3. ~~~~~~~~~~~~~~~~~~~~~~~
  4. The script node objects have no built-in properties. When you select a script node in the scene, the |InspectorView|_ shows a few sections related only to the editor.
  5. It is the case of the `Variable properties <./variable-properties.html>`_. Like the game objects, a script node can be referenced by a variable, and you can set its scope to the method, the class, or declare it as a nested prefab:
  6. .. image:: ../images/script-node-variable-section-20230323.webp
  7. :alt: Variable section of a script node
  8. A script node also can be added to an `Object List <./object-list.html>`_:
  9. .. image:: ../images/scrip-node-object-list-section-20230323.webp
  10. :alt: Object List section
  11. And because it could be created as a prefab instance, it shows the `Prefab Instance properties <./prefab-user-properties-prefab-instance.html>`_:
  12. .. image:: ../images/script-node-object-list-section-20230627.webp
  13. :alt: Prefab instance properties.