アセット
概要
using Sirenix.OdinInspector; using System.Collections; using System.Collections.Generic; using UnityEngine; public class Example : MonoBehaviour { [ValueDropdown( "GetAllChildObjects" )] public GameObject m_object; [ValueDropdown( "GetAllChildObjects", IsUniqueList = true )] public List<GameObject> m_list; private IEnumerable GetAllChildObjects() { for ( int i = 0; i < transform.childCount; i++ ) { yield return transform.GetChild( i ).gameObject; } } }
「ValueDropdown」属性が拡張されて、よりカスタマイズしやすく使いやすくなりました