您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
25 行
549 B
25 行
549 B
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class lightSelector : MonoBehaviour
|
|
{
|
|
[NonSerialized]
|
|
public bool[] testBool = new bool[128];
|
|
|
|
[NonSerialized]
|
|
public int m_count;
|
|
|
|
void Start()
|
|
{
|
|
// ToggleTest toggleTest = camera.GetComponent<ToggleTest>();
|
|
// toggleTest.testBool[]
|
|
}
|
|
|
|
void OnGUI()
|
|
{
|
|
for (int i = 0; i < m_count; i++)
|
|
testBool[i] = GUI.Toggle(new Rect(0, i * 20f, 100, 20), testBool[i], "Checkbox");
|
|
}
|
|
}
|