BLACKISH DEV BLOG Support
 

 

Unity: Marking classes or functions as Obsolete

Ever wanted to mark a class or function as Obsolete? Here’s how to do it:

[System.Obsolete("No longer needed?", false)]
public void HideAllSlots() { 
	//OLD CODE HERE
}
Bookmark the permalink. Follow any comments here with the RSS feed for this post. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>