Kursach_StealthAction/Assets/Tremble/MonoBehaviours/TrembleSpawnablePrefab.cs
2026-10-11 19:16:11 +03:00

25 lines
757 B
C#

//
// This file is part of the Tremble package by Tiny Goose.
// Copyright (c) 2024-2026 TinyGoose Ltd., All Rights Reserved.
//
using UnityEngine;
namespace TinyGoose.Tremble
{
/// <summary>
/// Add this component to an existing Prefab which doesn't contain a
/// MonoBehaviour to allow it to be placed in TrenchBroom easily.
/// </summary>
[PrefabEntity]
public sealed class TrembleSpawnablePrefab : MonoBehaviour
{
[SerializeField, NoTremble] private string m_Category;
[SerializeField, NoTremble] private Texture2D m_OverrideSprite;
[SerializeField, NoTremble] private bool m_OnlyVariants;
public string Category => m_Category;
public Texture2D OverrideSprite => m_OverrideSprite;
public bool OnlyVariants => m_OnlyVariants;
}
}