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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

New ScriptableObject no longer working, what did I do? (Resolved 2018.1 no support for Mono)

Discussion in 'Scripting' started by itsteveg, May 28, 2018.

  1. itsteveg

    itsteveg

    Joined:
    Apr 30, 2018
    Posts:
    9
    I am very confused.
    I've been using ScriptableObject on my current project flawlessly and happily however since I upgraded to 2018.1.1.f1 new scriptableObjects no longer work at all.

    Symptom: I create a new C# script like so:
    Code (CSharp):
    1.  
    2. using System.Collections;
    3. using System.Collections.Generic;
    4. using UnityEngine;
    5.  
    6. [CreateAssetMenu]
    7. public class People : ScriptableObject {
    8.  
    9.  
    10.     public string npcName;
    11.     public Sprite npcSprite;
    12.  
    13. }
    (strange side note some variable types no longer autocomplete in that script in Mono...)

    I can create the object from the menu no problem.
    but when I try to initialize that SO from my main game controller it won't show up in autocomplete (using Mono) AND the field in the inspector doesn't show up even if I enter the line anyways like so:
     public People Someone;
    (People is in Red and doesn't show in the inspector after saving)

    And finally I get no errors in the console but since I can't initialize the SO I can't use it either...

    thoughts?
    any help appreciated.


    PS: I'm noticing other strange things like GUI TextMesh fields that keep losing their assignment in inspector... I might uninstall everything and try to install again... confused though.
     
  2. itsteveg

    itsteveg

    Joined:
    Apr 30, 2018
    Posts:
    9
    Pretty quick fix. As it turns out Version 2018.1 no longer supports MonoDevelop so some stuff stops working correctly.

    I reinstalled 2017..4.4.f1 and everything works again.
     
  3. methos5k

    methos5k

    Joined:
    Aug 3, 2015
    Posts:
    8,712
    You can use another IDE, if you'd like.. Visual studio and some others. Just adding this in case you wanted to switch to 2018 at some point.
     
  4. itsteveg

    itsteveg

    Joined:
    Apr 30, 2018
    Posts:
    9
    True. although I've gotten so used to Mono and I'm really not a big fan of VS with all the forced MS account.
    But apparently at some point I will have to switch.

    I'll definitely wait until the next project though.

    thank you.