Coder Social home page Coder Social logo

unity-packaging's Introduction

Unity Packaging

Apply automation to your project

Environment

  • Local

    OS - macOS Generic badge

  • Dockerised Unity Editor

    Use Docker

Unity license

Get Unity licenses for Personal plan.

Procedure

  1. Create a license request file ( .alf ) from the command line.

    /Applications/Unity/Hub/Editor/2022.1.12f1/Unity.app/Contents/MacOS/Unity \
    -nographics \
    -batchmode \
    -createManualActivationFile \
    -logfile
    result
    Unity Editor version:    2022.1.12f1 (916d9c03b898)
    Branch:                  2022.1/staging
    Build type:              Release
    Batch mode:              YES
    macOS version:           Version 14.2.1 (Build 23C71)
    Darwin version:          23.2.0
    Architecture:            arm64
    Running under Rosetta:   NO
    Available memory:        8192 MB
    [LicensingClient] Error: Code 10 while verifying Licensing Client signature (process Id: 854, path: "/Applications/Unity Hub.app/Contents/Frameworks/UnityLicensingClient_V1.app/Contents/MacOS/Unity.Licensing.Client")
    [Licensing::Module]  Error: LicensingClient has failed validation; ignoring
    [LicensingClient] Handshaking with LicensingClient:
        version: 1.15.0+66d4389
        Session Id: 9342ce6809954a45a76f80bc08e4135f
        Machine Id: 1tHzQC2UBVo6fy+/N3i02Etdd74=
    [Licensing::Module] Successfully connected to LicensingClient on channel: "LicenseClient-pokeum" (connect: 0.00s, validation: 0.02s, handshake: 0.30s)
    Entitlement-based licensing initiated
    [Licensing::Module]  Error: Access token is unavailable; failed to update
    [LicensingClient] Error: Code 200 while updating license in client (status: Licenses updated.)
    [Licensing::Module] Generating manual activation license file: /Users/pokeum/Unity_v2022.1.12f1.alf
    [LicensingClient] Successfully processed ALF generation request: /Users/pokeum/Unity_v2022.1.12f1.alf
    [Licensing::Module] Manual activation license file successfully saved.
    
  2. Use that .alf file to generate a Unity license file ( .ulf ) from Unity.

    Generate a Unity license file

  3. Use that .ulf file to activate your license from the command line.

    /Applications/Unity/Hub/Editor/2022.1.12f1/Unity.app/Contents/MacOS/Unity \
    -nographics \
    -batchmode \
    -manualLicenseFile "/Users/pokeum/Downloads/Unity_v2022.x.ulf" \
    -logfile

Unity packaging

Use the Unity Editor command line arguments to package unity assets from the command line.

/Applications/Unity/Hub/Editor/2022.1.12f1/Unity.app/Contents/MacOS/Unity \
-batchmode \
-quit \
-nographics \
-logfile \
-projectPath "/Users/pokeum/Git/pokeum/unity-packaging/myproject" \
-exportPackage "Assets/MyPackage/Include" "Assets/Scenes/IncludeScene.unity" \
"mypackage-0.0.0.unitypackage"

Note

Export package location
: /Users/pokeum/Git/pokeum/unity-packaging/myproject/mypackage-0.0.0.unitypackage
(relative to the Unity project root)

unity-packaging's People

Contributors

pokeum avatar

Watchers

 avatar

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.