コード例 #1
0
        public ObjectTreeViewer(MonoBehaviour pluginObject, GameObjectSearcher gameObjectSearcher)
        {
            if (pluginObject == null)
            {
                throw new ArgumentNullException(nameof(pluginObject));
            }
            _gameObjectSearcher = gameObjectSearcher ?? throw new ArgumentNullException(nameof(gameObjectSearcher));

            pluginObject.StartCoroutine(SetWireframeCo());
        }
コード例 #2
0
        public ObjectTreeViewer(MonoBehaviour pluginObject, GameObjectSearcher gameObjectSearcher)
        {
            if (pluginObject == null)
            {
                throw new ArgumentNullException(nameof(pluginObject));
            }
            if (gameObjectSearcher == null)
            {
                throw new ArgumentNullException(nameof(gameObjectSearcher));
            }

            _gameObjectSearcher = gameObjectSearcher;
            _windowId           = GetHashCode();
        }