This version of Unity is unsupported.
Experimental: this API is experimental and might be changed or removed in the future.

EnumField.Init

Declaration

public void Init(Enum defaultValue);

Parameters

defaultValue Your typed enum value.

Description

Initialize the EnumField with a default value. This also initializes its underlying type.