Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

Muscle Animation Editor CS0618

Discussion in 'General Discussion' started by Neox37, Jan 13, 2018.

  1. Neox37

    Neox37

    Joined:
    Jan 13, 2018
    Posts:
    4
    I just downloaded Muscle Animation Editor and then he told me : warning CS0618: ´UnityEditor .EditorWindow.title´ is obsolete: ´Use titleContent instead (it supports setting a title icon as well) i don't know what to do can someone help me

    Mod Edit: Please do not post contents of a purchased asset, it is a violation of the TOS.
     
    Last edited by a moderator: Jan 13, 2018
  2. tsangwailam

    tsangwailam

    Joined:
    Jul 30, 2013
    Posts:
    280
    why not ask the author?
     
  3. elmar1028

    elmar1028

    Joined:
    Nov 21, 2013
    Posts:
    2,353
    Warning itself is self explanatory: EditorWindow.title has been replaced by EditorWindow.titleContent.

    If you double click the warning, it should take you to that line of code.
     
  4. Neox37

    Neox37

    Joined:
    Jan 13, 2018
    Posts:
    4
    When i double click the warning it shows me: this.title= "Muscle Editor" ;
     
  5. elmar1028

    elmar1028

    Joined:
    Nov 21, 2013
    Posts:
    2,353
    change that line to
    Code (CSharp):
    1. this.titleContent = new GUIContent("Muscle Editor");
     
    Neox37 likes this.
  6. Neox37

    Neox37

    Joined:
    Jan 13, 2018
    Posts:
    4
    Well Thanks i don't get the warning anymore but now i get: warning CS0162 unreachable code detected when i double click the warning it says : Debug.Log (log);
    and this is now in PSLogger.cs
     
  7. elmar1028

    elmar1028

    Joined:
    Nov 21, 2013
    Posts:
    2,353
    That means Debug.Log(log) will never be executed. So just delete that line of code or add // at the beginning.
     
    theANMATOR2b and Neox37 like this.
  8. Neox37

    Neox37

    Joined:
    Jan 13, 2018
    Posts:
    4
    Thanks you're a hero.
    now all is fine