Basic setup documentation can be found below, refer to the following links for more detailed documentation.
- Third party License info can be found in Third Party Notices
- Recent changes can be viewed in the Change Log.
- For support, please contact [email protected]
- Join Eren's Discord Server for latest changes, or logging an issue! Discord Server
Caution
It is recommended you do not modify any code inside the package except in very specific circumstances. The package was designed to only expose the code & features which should be edited.
Changing anything else may cause unexpected behaviours and stop the package from working properly.
Tip
- This package contains ready-made assets & over 100 script components
which you can easily drag & drop onto GameObjects. Every component has been set up to
automatically adjust relevant settings on the GameObject to reduce errors.
- This package also contains dozens of custom editors and scene-visualising tools
to make your development process even more streamlined.
- Custom toolbars & menus have been written to allow you to simply right click and add template objects into your scene e.g. collectables, checkpoints & enemies.
Tip
To install:
- Go to Window > Package Manager
- Press the
+
button and select 'Add Package by Name' - Enter the package name as shown above
- Enter the package version as shown above
- Press Add (may take a few minutes)
The following packages are required to ensure this framework works correctly. The version of packages may vary depending on your Unity version.
Package Name | Version |
---|---|
com.unity.2d.tilemap.extras |
2.2.3 |
com.unity.2d.pixel-perfect |
5.0.1 |
com.unity.2d.tilemap |
1.0.0 |
com.unity.2d.sprite |
1.0.0 |
com.unity.inputsystem |
1.3.0 |
com.unity.textmeshpro |
3.0.6 |
com.unity.nuget.newtonsoft-json |
3.0.2 |
com.unity.mathematics |
1.2.6 |
nuget.castle-core |
1.0.1 |
com.unity.ext.nunit |
1.0.6 |
nuget.moq |
1.0.0 |
com.unity.test-framework |
1.1.33 |
Note
- Because we want to create runtime tests, we need to make sure we can access our Input System from our tests. This is so we can simulate user input like Keyboard, Mouse or Gamepad from our tests to ensure our characters or UI behave properly
- Navigate to your Unity Project's root folder, either via Windows Explorer or otherwise. You can also right click in your project window and select
Show in explorer
. - From the root folder, go to
/Packages
- Right click on
manifest.json
and selectOpen with Notepad
(or your code editor of choice) - You should see the following contents (or similar)
{
"dependencies": {
"com.unity.ai.navigation": "1.1.1",
"com.unity.feature.2d": "1.0.0",
...
}
}
- Append, the following chunk to your json so that it looks like this:
- SAVE the file, close it, and return to Unity
{
"dependencies": {
"com.unity.ai.navigation": "1.1.1",
"com.unity.feature.2d": "1.0.0",
...
},
"testables": [
"com.unity.inputsystem"
]
}
Warning
- Make sure you have used the quotation marks "" in the correct places
- Make sure you have used SQUARE BRACKETS
- Make sure you have spelt the package name correctly
- make sure you include the COMMA , after the closing curly brace of dependencies
- When you go back into Unity, Unity will rebuild your packages. Should anything go wrong, go back to step 3. and ensure you have done everything correctly
Before you use the package, you should set a few things up to make sure everything works as intended! The steps have been documented below:
- Go to Edit > Project Settings > Tags & Layers
- On 'User Layer 6' type: "Standable"
- Then, on 'User Layer 7' type: "Actor"
- Your settings should look like this:
- Then, Go to Edit > Project Settings > Physics 2D
- Uncheck 'Queries Hit Triggers'
- [Optional] Scroll down to the 'Layer Collision Matrix' dropdown
- Make sure to uncheck 'Actor x Actor' collisions to stop actors (characters) from being able to push or bump into each other
- Your settings should look like this:
To modify the global settings for the package you should go to: Window > Eren's 2D Framework > Framework Settings
Here you can modify
- Scene transition style
- Scene transition color
- Scene transition speed
For a quick link to the documentation use: Window > Eren's 2D Framework > Documentation
It is recommended you join Eren's Official Discord server in Window > Eren's 2D Framework > Discord
In case you need any assistance in using the package
or encounter any errors or would like to suggest improvements to the framework.
In the event you encounter any bugs or have an idea for a new feature, head to the Issues tab in this repository and please create a new issue. Please provide as much information as possible and this will help me to help you!