Unity missing custom initializers

One of the things I miss the most coming from Objective-C to Unity is the lack of custom initializers. Luckily-ish there is a way to kind of do this:


public class Meow()
    public int x
    public string name

new Meow{x = 10, name = "cat"}



Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.