void Start() { this.flexibleWindow = new FlexibleWindow(); this.colorGUI = new ColorGUI() { Title = "Color Value", Value = this.colorValue, }; this.colorGUIHSV = new ColorGUI() { Title = "Color Value HSV", Value = this.colorValue, HSV = true }; this.enumGUI = new EnumGUI<CameraType>() { Title = "Enum Value", Value = this.enumValue }; this.ipv4GUI = new IPv4GUI() { Title = "IPv4 Value", Value = this.ipv4Value, }; }
protected virtual void Start() { this.flexibleWindow = new FlexWindow() { Title = "UNET", IsVisible = false }; this.ipV4GUI = new IPv4GUI() { Title = "Address" }; this.portGUI = new IntGUI() { Title = "Port", MinValue = 0, MaxValue = 65535, Slider = false }; this.autoStartGUI = new BoolGUI() { Title = "Auto Start" }; this.autoStartTypeGUI = new EnumGUI <UNetworkManager.UNetType>() { Title = "Auto Start Type" }; }
void Awake() { XJGUILayout.DefaultMinValueVector2Int = new Vector2Int(-999, -999); XJGUILayout.DefaultMaxValueVector2Int = new Vector2Int(999, 999); this.window = new FlexibleWindow("Basic Sample"); this.tabPanel = new TabPanel(); this.foldoutPanel = new FoldoutPanel("Click to Open/Close"); this.scrollPanel = new ScrollPanel() { MinHeight = 100 }; this.boolGUI = new BoolGUI("Bool", this.boolValue); this.stringGUI = new StringGUI("String", this.stringValue) { FieldWidth = 250 }; this.intGUI = new IntGUI("Int", this.intValue); this.floatGUI = new FloatGUI("Float", this.floatValue, -1, 1); this.vector2GUI = new Vector2GUI("Vector2", this.vector2Value) { Decimals = 1 }; this.vector3GUI = new Vector3GUI("Vector3", this.vector3Value) { MinValue = Vector3.zero }; this.vector4GUI = new Vector4GUI("Vector4", this.vector4Value) { WithSlider = false }; this.vector2IntGUI = new Vector2IntGUI("Vector2Int", this.vector2IntValue); this.vector3IntGUI = new Vector3IntGUI("Vector3Int", this.vector3IntValue, Vector3Int.zero, Vector3Int.one); this.colorGUI = new ColorGUI("Color", this.colorValue); this.matrixGUI = new Matrix4x4GUI("Matrix4x4", this.matrixValue); this.ipv4GUI = new IPv4GUI("IPv4", this.ipv4Value); this.enumGUI = new EnumGUI <CameraType>("Enum", this.enumValue); }