IsSame(string)
Compares this UniqueStyleString to a given string for equality.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public bool IsSame(string s)
Parameters
The string with which to compare for equality.
Returns
Type | Description |
|---|---|
| bool | True if this UniqueStyleString represents an underlying string value that is equal to the provided string. |
Remarks
This method uses a lightweight operation that avoids creating intermediary data and can be faster than converting the provided string to a UniqueStyleString.