mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-06-20 15:47:54 +08:00
28 lines
727 B
C#
28 lines
727 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Reflection;
|
|
using UnityEngine;
|
|
using UnityExplorer.Core;
|
|
|
|
namespace UnityExplorer.UI.Widgets.AutoComplete
|
|
{
|
|
public struct Suggestion
|
|
{
|
|
public readonly string DisplayText;
|
|
public readonly string UnderlyingValue;
|
|
public readonly string Prefix;
|
|
public readonly string Addition;
|
|
|
|
public string Full => Prefix + Addition;
|
|
|
|
public Suggestion(string displayText, string prefix, string addition, string underlyingValue)
|
|
{
|
|
DisplayText = displayText;
|
|
Addition = addition;
|
|
Prefix = prefix;
|
|
UnderlyingValue = underlyingValue;
|
|
}
|
|
}
|
|
}
|