Skip to content

The "Any" Class

CoffeeVampir3 edited this page Mar 19, 2021 · 2 revisions

class Any

Any is a special class that ValuePort's can utilize, like so:

        [Out, SerializeField]
        public ValuePort<Any> rootPort = new ValuePort<Any>();

A port marked as Any simply means it can connect with anything. It's important to note that ports marked Any can cause problems if you're using Link.GetValueAs<T> because Any does not have a defined value.