Search Unity

-executeMethod is broken in Unity-2018.2.7f1

Discussion in 'Linux' started by hartsantler, Dec 3, 2018.

  1. hartsantler

    hartsantler

    Joined:
    Dec 2, 2018
    Posts:
    4
  2. hartsantler

    hartsantler

    Joined:
    Dec 2, 2018
    Posts:
    4
    The first workaround to this problem i found is just have your runner script inject code into a file in MyProject/Assets/Editor/. that contains a public class with static constructor, and decorated with [InitializeOnLoad]

    Later i found the problem with -executeMethod is because I had named my .cs file using the same name as the class inside it.
     
unityunity