Thursday, September 1, 2022
HomeGame DevelopmentIs it potential to mark a Unity prefab variant as deprecated?

Is it potential to mark a Unity prefab variant as deprecated?


I am constructing a sport in the intervening time and a basic subject has come up, of getting a sophisticated prefab variant in use, which occurs to have a basic downside in its design and must be changed. That is typically performed to a brand new prefab variant that solely barely differs, and I am going to sometimes identify it one thing like <authentic identify>.2 to distinguish.

(Often it is one thing foolish like forgetting to rotate by an empty father or mother sport object that does not have an animator hooked up, one thing like that… nothing that may simply be swapped out of the unique prefab.)

This works nice. Nevertheless, there’s at all times the chance that I will be popping that deprecated authentic prefab right into a slot that expects the brand new one, and warnings like we get with the [Obsolete] annotation on class code can be actually helpful and fairly the time saver, I would not even need to run this system to know I’ve performed one thing unsuitable. Since prefab variants comply with a lot the identical sample as courses and subclasses, I am questioning:

Do prefabs have an equal to the [Obsolete] attribute? Can I inform Unity on to preserve it, however not let me use it with out throwing a fuss?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments