Skip to content

Commit 849d9c6

Browse files
committed
Merge branch 'unity-package'
2 parents 0052c0c + 437fc8d commit 849d9c6

File tree

174 files changed

+2786
-204
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

174 files changed

+2786
-204
lines changed

README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
This library renders a subset of [ABC Music Notation](http://abcnotation.com/) in Unity. It is built on the [ABCSharp](https://github.com/matthewcpp/abcsharp) parsing library.
33

44
### Installation
5-
The easiest way to to use the library is to download the repo as a zip archive and place the extracted directory into your Assets folder. Optionally the repo can be included as a git submodule in your project.
5+
The easiest way to to use the library is to install it using the Unity package manager.
66
This project requires the installation of the basic TextMeshPro asset package.
77

88
### Basic Usage
99
The included sample scene shows basic layout usage.
10-
The `ABCLayout` prefab serves as a top level container for all the sprites needed to display the score. The layout will attempt to fill as much as the area defined by the object's RectTransform.
10+
The `ABCLayout` prefab serves as a top level container for all the sprites needed to display the score. The layout will attempt to fill as the area defined by the object's RectTransform.
1111
Abc code is rendering using the `LoadString`, `LoadStream`, or `LoadFile` methods on the `ABCUnity.Layout` class.
1212
Individual items can have their color set using the `SetItemColor` method.
1313

@@ -28,4 +28,14 @@ K:C
2828
```
2929
Appears in the game engine as:
3030

31-
[![score.png](https://i.postimg.cc/T1Fy1dCJ/score.png)](https://matthewcpp.github.io/assets/images/score.png)
31+
[![score.png](https://i.postimg.cc/T1Fy1dCJ/score.png)](https://matthewcpp.github.io/assets/images/score.png)
32+
33+
### Testing
34+
The test harness is loacated in the `Runtime/Tests/Test.unity` scene.
35+
Enter playmode and select the test which to run from the dropdown menu.
36+
Compare the output with the corresponding baseline file.
37+
38+
### Adding tests
39+
Create a new abc file in the `Runtime/Resources/Tests` folder that contains the test abc code. The file should be specified as `testname.abc.txt`.
40+
Add a new entry to the `testFiles` array in `Runtime/Tests/TestUi.cs`
41+
Create a new MuseScore file in the `Runtime/Tests/Baselines~` folder that correctly renders the functionality you are testing.

Runtime.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ MonoBehaviour:
5454
color: {r: 0, g: 0, b: 0, a: 1}
5555
NoteMaterial: {fileID: 2100000, guid: 45ad52670051e204a831e584dcff4feb, type: 2}
5656
textPrefab: {fileID: 6477534108993699429, guid: 5a04610f96d954d629c68779a84e25cf,
57-
type: 3}
57+
type: 3}

0 commit comments

Comments
 (0)