コード例 #1
0
        private void RenderTileConnectionTypePreview()
        {
            GUILayout.Button(GetContentForTileConnectionTypePreviewButton(),
                             GetStyleForTileConnectionTypePreviewButton(),
                             GUILayout.Width(TileConnectionPreviewButtonSize), GUILayout.Height(TileConnectionPreviewButtonSize));
            Rect tileConnectionButtonRect = GUILayoutUtility.GetLastRect();

            RenderTileConnectionTypePreviewLabel(tileConnectionButtonRect);

            PrefabsToPathTileConectionDropEventHandler.Get().DestinationTileConnectionType = _settings.TileConnectionType;
            PrefabsToPathTileConectionDropEventHandler.Get().Handle(Event.current, tileConnectionButtonRect);
        }
        protected override void RenderContent()
        {
            RenderUseTileConnectionsToggle();
            if (_settings.UseTileConnections)
            {
                EditorGUILayoutEx.InformativeLabel("When using tile connections, the extension plane will always reside at the bottom of the placement guide in its local space.");
                RenderSetCommonPropertiesControls();
                RenderRemoveAllPrefabAssociationsButton();

                EditorGUILayout.Separator();
                PrefabsToPathTileConectionDropEventHandler.Get().DropSettings.View.Render();
                RenderViewForEachTileConnectionType();
            }
        }