Giter Club home page Giter Club logo

Comments (3)

slavniyteo avatar slavniyteo commented on June 6, 2024 1

Ok, there it is.

Look at the screenshot, at the first property Script lies None (Mono Script), but must be the name of class. This mean that Unity can't properly load your script.
image

I've looked through your project. The problem is that you named the file Data.cs, but class inside it is DataAsset. In Unity file must have the same name as public class incide it (this is suitable for classes which inherit from UnityEngine.Object, for example MonoBehaviour's and ScriptableObject's).

So rename file to DataAsset.cs and this is the solution.

I close the issue, but If your problem is not solved completely, feel free to reopen it.


P.S. When you send your project to someone, or if you use version control system (like Git or SVN), all you need to store is:

  • Asset directory;
  • ProjectSettings directory;
  • Packages directory;

The rest is temporary files that will be regenerated on the other PC.

from one-line.

slavniyteo avatar slavniyteo commented on June 6, 2024

Show me what do you do exactly.

OneLine works out of the box and there is no need of any initialization.

from one-line.

kk3hi3123 avatar kk3hi3123 commented on June 6, 2024
  1. I start a new project.
  2. Import OneLine.
  3. Add a new C# Script.
  4. Copy from OneLineExample.cs and copy it to my new C# Script.
  5. Remove namespace OneLine.Example, change the class name and menuName.

And here is the result after I create a new asset.
screenshot 2019-01-22 at 9 13 47 am

I am using Unity 2018.2.14f1 and here is the project.
TestingProject.zip

from one-line.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.