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

Add: Support list view label modification #68

Merged

Conversation

yuyu0127
Copy link
Contributor

@yuyu0127 yuyu0127 commented Mar 16, 2024

Overview

I have added a feature to support changing the labels in PropertyListView.

This works as follows:

image
using UnityEngine;
using Alchemy.Inspector;

namespace Alchemy.Samples
{
    public class LabelTextSample : MonoBehaviour
    {
        [LabelText("FOO!")] public float[] foo;
        [LabelText("BAR!")] public Vector3[] bar;
        [LabelText("BAZ!")] public GameObject[] baz;
    }
}

Sample

I added lines using [LabelText] for some list fields in LabelTextSample.cs and modified Samples.unity.

@yuyu0127 yuyu0127 force-pushed the support-list-view-label-modification branch 2 times, most recently from 7a614d0 to 4cdba8a Compare March 16, 2024 15:48
@AnnulusGames AnnulusGames merged commit 3ca300f into AnnulusGames:main Mar 21, 2024
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

Successfully merging this pull request may close these issues.

2 participants