Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A package manager version? #315

Closed
yuyang9119 opened this issue Nov 17, 2019 · 10 comments
Closed

A package manager version? #315

yuyang9119 opened this issue Nov 17, 2019 · 10 comments

Comments

@yuyang9119
Copy link

@rlabrecque Hi, I'm looking for a Steamworks package version for Unity, but can't find one. So I fork this and modify it to a package. I would like to know if you are planning to do this so I needn't maintain the package by myself. Anyway, thanks for your sharing.

@rlabrecque
Copy link
Owner

Yes, I'm planning on it, can you link me what you have so I could use it as a starting point? 👍

@yuyang9119
Copy link
Author

yuyang9119 commented Nov 18, 2019

This is my repository:
https://github.com/yuyang9119/UnityExtensionsSteamworks

I just move all stuff into the Steamworks package folder and modify 'Plugins' folder name to 'Runtime'. There's some path problems to handle, so I add 'Utilities' class:

#if UNITY_EDITOR

using System.IO;

namespace UnityExtensions.Steamworks.Editor
{
    public struct Utilities
    {
        public static readonly string RuntimeDirectory = Path.GetFullPath("Packages/com.yuyang.unity-extensions.steamworks/Runtime");
    }
}

#endif // UNITY_EDITOR

Because 'Editor' folder in package is not a special folder, I use #if UNITY_EDITOR ... #endif wrap all editor-only scripts. I add a 'SteamworksHelper' class to simplify steamworks integration last.

Because git package is not available on old versions of Unity, you can remove the support code for old versions of Unity in this package version. I will delete my repository once you compete the package version.

One last thing, I found a mistake in the documentation:

If you pause the game by setting Time.timeScale to 0 then Update() functions will no longer run.

In fact Update() will still run just with a 0 deltaTime. The FixedUpdate will no longer run.

@yuyang9119
Copy link
Author

This is custom package documentation if you need: https://docs.unity3d.com/2019.3/Documentation/Manual/CustomPackages.html

@rlabrecque
Copy link
Owner

Thanks!

@crdmrn
Copy link

crdmrn commented Apr 15, 2020

Is there any update on this @rlabrecque?

@demonixis
Copy link

Hi,
I'm also very interested by a package manager version. I can submit a PR if you're interested

@dglwilkins
Copy link

Would also love a package manager version.

@joaoborks
Copy link

Also interested on this

@nightrise
Copy link

Same here -- this would facilitate updates, as well as references from other packages. Currently because it's in the main assembly, it's difficult for packages that depend on Steamworks to reference it.

@rlabrecque
Copy link
Owner

Updates and progress has been made here 👍 : #389

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants