Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

The name 'EditorWindow' does not denote a valid type ('not found').

Discussion in 'Scripting' started by Disastercake, Mar 1, 2013.

  1. Disastercake

    Disastercake

    Joined:
    Apr 7, 2012
    Posts:
    317
    I downloaded some Particle Effects from the asset store, and one happened to come with an editing script. However, this script is preventing my game from compiling!

    The error I am getting is:
    Assets/DynamicElements_Effects/scripts/ParticleWindow.js(3,30): BCE0018: The name 'EditorWindow' does not denote a valid type ('not found').

    It points to the line with:
    Code (csharp):
    1. class ParticleWindow extends EditorWindow
    I'm not familiar with Javascript, nor the editor extending. What do I need to alter about this code to get it to work?

    The whole .js file in it's entirety is below.

    [edit: please don't post assets from the store]
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    You have to put it in an Editor folder. Also please don't post code from Asset Store items unless you have specific permission to do so.

    --Eric