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

Improve array property view #2909

Closed
ze0nni opened this issue May 22, 2024 · 0 comments
Closed

Improve array property view #2909

ze0nni opened this issue May 22, 2024 · 0 comments

Comments

@ze0nni
Copy link

ze0nni commented May 22, 2024

Its hard to navigate in a large array property:

image

How about display user defined data instead class name?

@ccclass('AppViewPrefab')
class AppViewPrefab {
    @property(CCString)
    @displayName // << like this
    readonly id: string = "";
    @property(Prefab)
    readonly prefab!: Prefab;

    // << like this
    toString() { return id; }
}

@property([AppViewPrefab])
private prefabs: AppViewPrefab[] = [];
@ze0nni ze0nni closed this as completed May 22, 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

No branches or pull requests

1 participant