コード例 #1
0
        private void RenderActivePrefabPreviewButtonAndNextPrevControls(Prefab activePrefab)
        {
            var buttonDrawData = new PrefabPreviewButtonRenderData();

            buttonDrawData.ExtractFromPrefab(activePrefab, 1.0f);

            EditorGUILayoutEx.BeginVertical(GUILayout.Width(buttonDrawData.ButtonWidth));
            GUILayout.Button(buttonDrawData.ButtonContent, "Box", GUILayout.Width(buttonDrawData.ButtonWidth), GUILayout.Height(buttonDrawData.ButtonHeight));
            RenderNextAndPreviousPrefabButtons(activePrefab, buttonDrawData.ButtonWidth * 0.5f);
            EditorGUILayoutEx.EndVertical();
        }