Skip to content

A Unity extension to add a window to pin files and assets for easy convenience

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta
Notifications You must be signed in to change notification settings

WooshiiDev/PinnedAssets

Repository files navigation

Pinned Assets

Unity Extension allowing for convenient pinned lists of assets, scene gameobjects and components.

Select anything instantly.

AboutInstallationSupportDonate

image

About

Pinned Assets was made as Unity does not have an easy way to pin frequently accessed assets. This allows you to not only pin assets, but also make multiple profiles to easily group what you need together.

Custom GUI drawers can be created for asset types, to extend pinned functionality:

image

TextAssetDrawer.cs

public class TextAssetDrawer : PinnedAssetDrawer<TextAsset>
{
    protected override void OnAssetGUI(Rect rect, TextAsset asset, PinnedAssetListData list, SerializedObject serializedObject)
    {
        DrawDefaultGUI(rect, asset, list, serializedObject);

        if (Application.isPlaying)
        {
            return;
        }

        if (Button(rect, Icons.Edit, Styles.ToolbarButton, 64f))
        {
            OpenScript(asset);
        }
    }

    private void OpenScript(TextAsset asset)
    {
        AssetDatabase.OpenAsset(asset.GetInstanceID());
    }

    public override bool IsValid(TextAsset instance)
    {
        return base.IsValid(instance);
    }
}

Installation

ReleasesZip

This can be installed directly through the git url

https://github.com/WooshiiDev/PinnedAssets.git

You can also install this via git by adding the following to your manifest.json

"com.wooshii.pinnedassets" : "https://github.com/WooshiiDev/PinnedAssets.git"

Support

Please submit any queries, bugs or issues, to the Issues page on this repository. All feedback is appreciated as it helps improves Pinned Assets.

Reach out to me or see my other work through:

Donate

Pinned Assets will be and always has been developed in my free time. If you would to support me, you can do so below:

PayPal

About

A Unity extension to add a window to pin files and assets for easy convenience

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta

Stars

Watchers

Forks

Packages

No packages published

Languages