浏览代码

Correcting a callback for the camera configuration dropdown widget.

/2.1
Todd Stinson 6 年前
当前提交
5cda1a25
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 3
      Assets/Scripts/CameraConfigController.cs

3
Assets/Scripts/CameraConfigController.cs


/// the selection in the UI.
/// </summary>
/// <param name="dropdown">The <c>Dropdown</c> which changed.</param>
public void OnValueChanged(Dropdown dropdown)
void OnDropdownValueChanged(Dropdown dropdown)
{
if ((cameraManager == null) || (cameraManager.subsystem == null) || !cameraManager.subsystem.running)
{

{
m_Dropdown = GetComponent<Dropdown>();
m_Dropdown.ClearOptions();
m_Dropdown.onValueChanged.AddListener(delegate { OnDropdownValueChanged(m_Dropdown); });
m_ConfigurationNames = new List<string>();
}

正在加载...
取消
保存