LabelAttribute.cs 962 B

123456789101112131415161718192021222324252627
  1. // Copyright (c) 2024 Vuplex Inc. All rights reserved.
  2. //
  3. // Licensed under the Vuplex Commercial Software Library License, you may
  4. // not use this file except in compliance with the License. You may obtain
  5. // a copy of the License at
  6. //
  7. // https://vuplex.com/commercial-library-license
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. using UnityEngine;
  15. namespace Vuplex.WebView.Internal {
  16. /// <summary>
  17. /// Attribute for setting the label shown for a property in the editor.
  18. /// </summary>
  19. public class LabelAttribute : PropertyAttribute {
  20. public string Label { get ; private set; }
  21. public LabelAttribute(string label) => Label = label;
  22. }
  23. }