Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


FromEnumFlags<T>(T, int)

Creates a ToggleButtonGroupState based on a FlagsAttribute enum type.
Read time 1 minuteLast updated 12 days ago

Definition

public static ToggleButtonGroupState FromEnumFlags<T>(T options, int length = -1) where T : Enum

Parameters

options

T
The default Enum Flag value.

length

The number of options.

Returns

Type

Description

ToggleButtonGroupStateA ToggleButtonGroupState based on the EnumFlag passed as an argument.