Skip to content

WooshiiDev/PinnedAssets

Repository files navigation

Pinned Assets

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

Select anything instantly.

AboutInstallationSupportDonate

firefox_6HAW9faQ3i

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.

Usage

To create a PinnedAssets Scriptable go to Create -> Pinned Assets Profile

GUI Drawers

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

TextAssetDrawer.cs

public class TextAssetDrawer : PinnedAssetDrawer<TextAsset>
{
    protected override void OnAssetGUI(Rect rect, AssetLabelData label, TextAsset asset, PinnedAssetsController list, SerializedObject serializedObject)
    {
        DrawDefaultGUI(rect, label, 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

 
 
 

Contributors

Languages