Comments (3)
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.
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.
Show me what do you do exactly.
OneLine works out of the box and there is no need of any initialization.
from one-line.
- I start a new project.
- Import OneLine.
- Add a new C# Script.
- Copy from OneLineExample.cs and copy it to my new C# Script.
- Remove namespace OneLine.Example, change the class name and menuName.
And here is the result after I create a new asset.
I am using Unity 2018.2.14f1 and here is the project.
TestingProject.zip
from one-line.
Related Issues (20)
- Culling optimization is broken
- Header on the last field when line doesn't fill whole available space (fixed widthes only)
- Broken modifying dynamic arrays via context menu (slices cache isn't been affected)
- InspectorUtil fails to load current Inspector window in Unity 2018 HOT 1
- Add an ability to draw properties with different heights. HOT 1
- OneLine initializer cant find CurrentInspector in 2019.2a HOT 3
- OneLine doesn't work with root arrays in 2019.2 HOT 1
- UPM Support HOT 3
- InspectorUtil fall if use OneLine at editor window (not in inspector) HOT 8
- Add "how to build" to documentation HOT 3
- Why ignore bool type when uses WidthAttribute? HOT 6
- Unity can't link assembly definitions by GUIDs from startup HOT 5
- OneLine can't initialize Inspector Window Utility and Naughty Attributes Errors HOT 2
- can not initialize Inspector Window Utility HOT 1
- OneLine cannot initialize Inspector Window Utility HOT 1
- Error: OneLine can not initialize Inspector Window Utility. HOT 3
- Package renaming request
- Error When Click on the examples HOT 1
- OneLine can not initialize Inspector Window Utility HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from one-line.