GithubHelp home page GithubHelp logo

unity-atoms / unity-atoms-examples Goto Github PK

View Code? Open in Web Editor NEW
25.0 25.0 5.0 91 KB

๐Ÿงช Unity project using Unity Atoms containing examples and used for the development of Unity Atoms.

License: MIT License

C# 100.00%

unity-atoms-examples's Introduction

โš›๏ธ Unity Atoms

openupm openupm openupm openupm openupm openupm openupm openupm openupm

Tiny modular pieces utilizing the power of Scriptable Objects

Influences

Unity Atoms is derived from and a continuation of Ryan Hipple's talk from Unite 2017. The original source code can be found here.

This talk by Richard Fine is a forerunner to Ryan Hipple's talk during Unite 2016.

Motivation

The general approach to building scripts in Unity often generates a code base that is monolithic. This results in that your code is cumbersome to test, non-modular and hard to debug and understand.

Unity Atoms is an open source library that aims to make your game code:

  • ๐Ÿ“ฆ Modular - avoid scripts and systems directly dependent on each other
  • โœ๏ธ Editable - Scriptable Objects makes it possible to make changes to your game at runtime
  • ๐Ÿ› Debuggable - modular code is easier to debug than tightly coupled code

Installation

NPM

Prerequisite: Since Unity Atoms is using the Unity Package Manager (UPM) you need to use Unity version 2018.3 >=

Add the following to your manifest.json (which is located under your project location in the folder Packages):

{
    "scopedRegistries": [
        {
            "name": "NPM Registry",
            "url": "https://registry.npmjs.org",
            "scopes": [
                "com.unity-atoms.unity-atoms-core",
                "com.unity-atoms.unity-atoms-base-atoms",
                "com.unity-atoms.unity-atoms-fsm",
                "com.unity-atoms.unity-atoms-mobile",
                "com.unity-atoms.unity-atoms-mono-hooks",
                "com.unity-atoms.unity-atoms-tags",
                "com.unity-atoms.unity-atoms-scene-mgmt",
                "com.unity-atoms.unity-atoms-ui",
		        "com.unity-atoms.unity-atoms-input-system"
            ]
        }
    ],
    "dependencies": {
        ...
        "com.unity-atoms.unity-atoms-core": "4.5.0",
        "com.unity-atoms.unity-atoms-base-atoms": "4.5.0",
        "com.unity-atoms.unity-atoms-fsm": "4.5.0",
        "com.unity-atoms.unity-atoms-mobile": "4.5.0",
        "com.unity-atoms.unity-atoms-mono-hooks": "4.5.0",
        "com.unity-atoms.unity-atoms-tags": "4.5.0",
        "com.unity-atoms.unity-atoms-scene-mgmt": "4.5.0",
        "com.unity-atoms.unity-atoms-ui": "4.5.0",
	    "com.unity-atoms.unity-atoms-input-system": "4.5.0",
        ...
    }
}

Note that the core and base atoms packages are mandatory while the others are optional. If you don't want a subpackage, simply remove it from your dependencies. Note that subpackages may have additional dependencies.

OpenUPM

The package is available on the openupm registry. It's recommended to install it via openupm-cli.

# required
openupm add com.unity-atoms.unity-atoms-core
openupm add com.unity-atoms.unity-atoms-base-atoms

# optional
openupm add com.unity-atoms.unity-atoms-fsm
openupm add com.unity-atoms.unity-atoms-mobile
openupm add com.unity-atoms.unity-atoms-mono-hooks
openupm add com.unity-atoms.unity-atoms-tags
openupm add com.unity-atoms.unity-atoms-scene-mgmt
openupm add com.unity-atoms.unity-atoms-ui
openupm add com.unity-atoms.unity-atoms-input-system

Documentation

The Unity Atoms docs are now published at https://unity-atoms.github.io/unity-atoms.

Blog posts

How does it work?

Read this article on Medium for a great introduction to Unity Atoms.

Looking for support?

For questions and support please join our Discord channel.

Maintainers

We are looking for more people to join the team! Contact us if you want to jump aboard.

unity-atoms-examples's People

Contributors

adamramberg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

unity-atoms-examples's Issues

Can't open the project

Hi, I got this error when trying to open this project in Unity

Alt text

I'm using Unity 2020.2.7f.

Log [Licensing::Module] Channel doesn't exist: "LicenseClient-Admin" [Licensing::Module] Successfully launched the LicensingClient (PId: 12828) [Licensing::Module] Successfully connected to LicensingClient on channel: "LicenseClient-Admin" (connect: 0.46s, validation: 0.05s, handshake: 0.50s) [Licensing::Module] Connected to LicensingClient (PId: 12828, launch time: 0.00, total connection time: 1.00s) Entitlement-based licensing initiated [LicensingClient] Licenses updated successfully

LICENSE SYSTEM [202139 18:45:32] Next license update check is after 2021-03-09T11:55:03

LICENSE SYSTEM [202139 18:45:32] Current license is already valid and activated. Skipping license activation process (Provided username/password will be ignored).
Built from '2020.2/staging' branch; Version is '2020.2.7f1 (c53830e277f1) revision 12924976'; Using compiler version '192528614'; Build Type 'Release'
OS: 'Windows 10 Pro; OS build 18363.1379; Version 1909; 64bit' Language: 'en' Physical Memory: 16315 MB
[Licensing::Module] Serial number assigned to: "F4-EG24-4PMK-ZBY9-2DU2-XXXX"
BatchMode: 0, IsHumanControllingUs: 1, StartBugReporterOnCrash: 1, Is64bit: 1, IsPro: 0
[Package Manager] Server::Start -- Port 60794 was selected

COMMAND LINE ARGUMENTS:
C:\Program Files\Unity\Hub\Editor\2020.2.7f1\Editor\Unity.exe
-projectPath
V:\01_Work\Projects\unity-atoms-examples
Successfully changed project path to: V:\01_Work\Projects\unity-atoms-examples
V:/01_Work/Projects/unity-atoms-examples
Using Asset Import Pipeline V2.
Rebuilding Library because the metadata folder could not be found!

[Package Manager] Done resolving packages in 5.92s seconds
An error occurred while resolving packages:
Project has invalid dependencies:
com.unity-atoms.unity-atoms-base-atoms: The file [V:\01_Work\Projects\unity-atoms\Packages\BaseAtoms\package.json] cannot be found
com.unity-atoms.unity-atoms-core: The file [V:\01_Work\Projects\unity-atoms\Packages\Core\package.json] cannot be found
com.unity-atoms.unity-atoms-fsm: The file [V:\01_Work\Projects\unity-atoms\Packages\FSM\package.json] cannot be found
com.unity-atoms.unity-atoms-mobile: The file [V:\01_Work\Projects\unity-atoms\Packages\Mobile\package.json] cannot be found
com.unity-atoms.unity-atoms-mono-hooks: The file [V:\01_Work\Projects\unity-atoms\Packages\MonoHooks\package.json] cannot be found
com.unity-atoms.unity-atoms-scene-mgmt: The file [V:\01_Work\Projects\unity-atoms\Packages\SceneMgmt\package.json] cannot be found
com.unity-atoms.unity-atoms-tags: The file [V:\01_Work\Projects\unity-atoms\Packages\Tags\package.json] cannot be found
com.unity-atoms.unity-atoms-ui: The file [V:\01_Work\Projects\unity-atoms\Packages\UI\package.json] cannot be found

A re-import of the project may be required to fix the issue or a manual modification of V:/01_Work/Projects/unity-atoms-examples/Packages/manifest.json file.

Atoms packages not installed

Opening this project in Unity 2021 ends with "com.mambojambostudios.marvelous" as the only external dependcy package.

This issue bring also the question if Its good idea to include in this atom-exmaples project other external dependencies than the atoms packages.

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.