<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
		<id>https://wiki.nonip.net/index.php?action=history&amp;feed=atom&amp;title=Unity%2F%E3%83%AA%E3%82%B9%E3%83%88%E8%A1%A8%E7%A4%BA%2F%E9%80%9A%E5%B8%B8</id>
		<title>Unity/リスト表示/通常 - 変更履歴</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.nonip.net/index.php?action=history&amp;feed=atom&amp;title=Unity%2F%E3%83%AA%E3%82%B9%E3%83%88%E8%A1%A8%E7%A4%BA%2F%E9%80%9A%E5%B8%B8"/>
		<link rel="alternate" type="text/html" href="https://wiki.nonip.net/index.php?title=Unity/%E3%83%AA%E3%82%B9%E3%83%88%E8%A1%A8%E7%A4%BA/%E9%80%9A%E5%B8%B8&amp;action=history"/>
		<updated>2026-04-18T17:26:44Z</updated>
		<subtitle>このウィキのこのページに関する変更履歴</subtitle>
		<generator>MediaWiki 1.24.2</generator>

	<entry>
		<id>https://wiki.nonip.net/index.php?title=Unity/%E3%83%AA%E3%82%B9%E3%83%88%E8%A1%A8%E7%A4%BA/%E9%80%9A%E5%B8%B8&amp;diff=18348&amp;oldid=prev</id>
		<title>2024年1月8日 (月) 21:17にAdminによる</title>
		<link rel="alternate" type="text/html" href="https://wiki.nonip.net/index.php?title=Unity/%E3%83%AA%E3%82%B9%E3%83%88%E8%A1%A8%E7%A4%BA/%E9%80%9A%E5%B8%B8&amp;diff=18348&amp;oldid=prev"/>
				<updated>2024-01-08T21:17:20Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←前の版&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;2024年1月8日 (月) 21:17時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;行66:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;行66:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#Canvasの下にScrollViewができてることを確認。&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#Canvasの下にScrollViewができてることを確認。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#ScrollView/Viewport/ContentのInspectorに、VerticalLayoutGroupを、AddComponentする&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#ScrollView/Viewport/ContentのInspectorに、VerticalLayoutGroupを、AddComponentする&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#ScrollView/Viewport/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;ContentのInspectorに、CotentSizeFitterを、AddComponentする&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#ScrollView/Viewport/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;ContentのInspectorに、ContentSizeFitterを、AddComponentする&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#ScrollView/Viewport/ContentのInspectorの、VerticalLayoutGroupのControlChildSizeのHeightに、チェック&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#ScrollView/Viewport/ContentのInspectorの、VerticalLayoutGroupのControlChildSizeのHeightに、チェック&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#ScrollView/Viewport/ContentのInspectorの、VerticalLayoutGroupのChildForceExpandのHeightに、チェック&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#ScrollView/Viewport/ContentのInspectorの、VerticalLayoutGroupのChildForceExpandのHeightに、チェック&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#ScrollView/Viewport/ContentのInspectorの、VerticalLayoutGroupのChildAlignmentをUpperLeftへ&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#ScrollView/Viewport/ContentのInspectorの、VerticalLayoutGroupのChildAlignmentをUpperLeftへ&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#ScrollView/Viewport/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;ContentのInspectorの、CotentSizeFitterのVerticalFitを、UnconstrainedからPreferredSizeへ変更する&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#ScrollView/Viewport/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;ContentのInspectorの、ContentSizeFitterのVerticalFitを、UnconstrainedからPreferredSizeへ変更する&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#UI/Imageを作り、ScrollView/Viewport/Contentの下に設置&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#UI/Imageを作り、ScrollView/Viewport/Contentの下に設置&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#UI/Textを作り、ScrollView/Viewport/Content/Imageの下に追加&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#UI/Textを作り、ScrollView/Viewport/Content/Imageの下に追加&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;行83:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;行83:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#Canvasの下にScrollViewができてることを確認。&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#Canvasの下にScrollViewができてることを確認。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#ScrollView/Viewport/ContentのInspectorに、HorizontalLayoutGroupを、AddComponentする&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#ScrollView/Viewport/ContentのInspectorに、HorizontalLayoutGroupを、AddComponentする&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#ScrollView/Viewport/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;ContentのInspectorに、CotentSizeFitterを、AddComponentする&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#ScrollView/Viewport/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;ContentのInspectorに、ContentSizeFitterを、AddComponentする&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#ScrollView/Viewport/ContentのInspectorの、HorizontalLayoutGroupのChildForceExpandのWidthに、チェック&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#ScrollView/Viewport/ContentのInspectorの、HorizontalLayoutGroupのChildForceExpandのWidthに、チェック&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#ScrollView/Viewport/ContentのInspectorの、HorizontalLayoutGroupのChildAlignmentをMiddleCenterへ&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#ScrollView/Viewport/ContentのInspectorの、HorizontalLayoutGroupのChildAlignmentをMiddleCenterへ&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#ScrollView/Viewport/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;ContentのInspectorの、CotentSizeFitterのHorizontaiFitを、UnconstrainedからPreferredSizeへ変更する&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#ScrollView/Viewport/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;ContentのInspectorの、ContentSizeFitterのHorizontaiFitを、UnconstrainedからPreferredSizeへ変更する&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#UI/Imageを作り、Resourcesへ移動&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#UI/Imageを作り、Resourcesへ移動&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#以下コードを追加&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#以下コードを追加&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.nonip.net/index.php?title=Unity/%E3%83%AA%E3%82%B9%E3%83%88%E8%A1%A8%E7%A4%BA/%E9%80%9A%E5%B8%B8&amp;diff=18347&amp;oldid=prev</id>
		<title>Admin: /* 縦スクロールリストでテキストの高さを自動調整 */</title>
		<link rel="alternate" type="text/html" href="https://wiki.nonip.net/index.php?title=Unity/%E3%83%AA%E3%82%B9%E3%83%88%E8%A1%A8%E7%A4%BA/%E9%80%9A%E5%B8%B8&amp;diff=18347&amp;oldid=prev"/>
				<updated>2024-01-08T21:16:59Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;縦スクロールリストでテキストの高さを自動調整&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←前の版&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;2024年1月8日 (月) 21:16時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;行55:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;行55:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#Canvasの下にScrollViewができてることを確認。&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#Canvasの下にScrollViewができてることを確認。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#ScrollView/Viewport/ContentのInspectorに、VerticalLayoutGroupを、AddComponentする&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#ScrollView/Viewport/ContentのInspectorに、VerticalLayoutGroupを、AddComponentする&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#ScrollView/Viewport/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;ContentのInspectorに、CotentSizeFitterを、AddComponentする&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#ScrollView/Viewport/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;ContentのInspectorに、ContentSizeFitterを、AddComponentする&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#ScrollView/Viewport/ContentのInspectorの、VerticalLayoutGroupのControlChildSizeのHeightに、チェック&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#ScrollView/Viewport/ContentのInspectorの、VerticalLayoutGroupのControlChildSizeのHeightに、チェック&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#ScrollView/Viewport/ContentのInspectorの、VerticalLayoutGroupのChildAlignmentをUpperLeftへ&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#ScrollView/Viewport/ContentのInspectorの、VerticalLayoutGroupのChildAlignmentをUpperLeftへ&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#ScrollView/Viewport/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;ContentのInspectorの、CotentSizeFitterのVerticalFitを、UnconstrainedからPreferredSizeへ変更する&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#ScrollView/Viewport/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;ContentのInspectorの、ContentSizeFitterのVerticalFitを、UnconstrainedからPreferredSizeへ変更する&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#UI/Textを作り、ScrollView/Viewport/Contentの下に設置&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#UI/Textを作り、ScrollView/Viewport/Contentの下に設置&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;テキストの幅を操作してと、自動で縦幅が調整されれば成功。&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;テキストの幅を操作してと、自動で縦幅が調整されれば成功。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.nonip.net/index.php?title=Unity/%E3%83%AA%E3%82%B9%E3%83%88%E8%A1%A8%E7%A4%BA/%E9%80%9A%E5%B8%B8&amp;diff=15875&amp;oldid=prev</id>
		<title>Admin: ページの作成:「 ==リストのUIを作る== unity/UIScrollView [ｼｮｰﾄｶｯﾄ]  #リスト内の部品はPanelで作ってprefab化する #prefabはAssets/Resourcesにいれ...」</title>
		<link rel="alternate" type="text/html" href="https://wiki.nonip.net/index.php?title=Unity/%E3%83%AA%E3%82%B9%E3%83%88%E8%A1%A8%E7%A4%BA/%E9%80%9A%E5%B8%B8&amp;diff=15875&amp;oldid=prev"/>
				<updated>2022-10-23T16:34:51Z</updated>
		
		<summary type="html">&lt;p&gt;ページの作成:「 ==リストのUIを作る== &lt;a href=&quot;/index.php/Unity/UIScrollView&quot; title=&quot;Unity/UIScrollView&quot;&gt;unity/UIScrollView&lt;/a&gt; [ｼｮｰﾄｶｯﾄ]  #リスト内の部品はPanelで作ってprefab化する #prefabはAssets/Resourcesにいれ...」&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
==リストのUIを作る==&lt;br /&gt;
[[unity/UIScrollView]] [ｼｮｰﾄｶｯﾄ]&lt;br /&gt;
&lt;br /&gt;
#リスト内の部品はPanelで作ってprefab化する&lt;br /&gt;
#prefabはAssets/Resourcesにいれる&lt;br /&gt;
&lt;br /&gt;
参考：https://tech.pjin.jp/blog/2016/08/30/unity_skill_3/&lt;br /&gt;
&lt;br /&gt;
==prefabを画面にロード==&lt;br /&gt;
参考：[[unity/3d]] [ｼｮｰﾄｶｯﾄ]&lt;br /&gt;
&lt;br /&gt;
リストの部品(panel)をprefabからロードする&lt;br /&gt;
# Ui/Panelを生成し、Textやボタンなどを貼り付ける&lt;br /&gt;
#Assets/Resourcesの中にPanelをドラッグするとprefabができる&lt;br /&gt;
#以下のようにインスタンスを生成する&lt;br /&gt;
&lt;br /&gt;
 GameObject prefab = (GameObject)Resources.Load(&amp;quot;HogePanel&amp;quot;);&lt;br /&gt;
 Vector3 position = new Vector3(x, y, z);&lt;br /&gt;
 GameObject obj = Instantiate(prefab, position, Quaternion.identity);&lt;br /&gt;
 obj.name = &amp;quot;HogePanel1&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
#&amp;quot;Scroll View/Viewport/Content&amp;quot;にAddComponentsで、VerticalLayoutGroupを追加する&lt;br /&gt;
#VerticalLayoutGroupのControlChildSizeにチェック入れる。&lt;br /&gt;
#VerticalLayoutGroupのspacingを200とかいれて間隔を空ける&lt;br /&gt;
&lt;br /&gt;
参考：http://tsubakit1.hateblo.jp/entry/2017/06/15/020309&lt;br /&gt;
&lt;br /&gt;
参考：https://teratail.com/questions/111392&lt;br /&gt;
&lt;br /&gt;
Instantiateのunity公式：&lt;br /&gt;
https://docs.unity3d.com/jp/current/ScriptReference/Object.Instantiate.html&lt;br /&gt;
&lt;br /&gt;
==リストの部品がずれる場合==&lt;br /&gt;
#prefab部品をダブルクリックして、RectTransformのTopとBottomを0にしてprefabを作り直す。&lt;br /&gt;
#prefab部品をダブルクリックして部品の中央をずらす。再度、prefabを作り直す。&lt;br /&gt;
&lt;br /&gt;
==リストの部品がずれる場合(NGパターン==&lt;br /&gt;
以下パターンだと、コンテンツが入らなかったり、スクロールが戻されたりして失敗する&lt;br /&gt;
#ContentSizeFitterのチェックを外すとか&lt;br /&gt;
#ContentのHeightを3000とかに以下のようにプログラムで広げるとか&lt;br /&gt;
&lt;br /&gt;
ContentのHeightを動的に変更&lt;br /&gt;
 GameObject panel = GameObject.Find(&amp;quot;/Canvas/Scroll View/Viewport/Content/Panel&amp;quot;);&lt;br /&gt;
 panel.GetComponent&amp;lt;RectTransform&amp;gt;().sizeDelta = new Vector2(w, h);&lt;br /&gt;
&lt;br /&gt;
==リストの高さが狭い時==&lt;br /&gt;
VerticalLayoutGroupのspacingを200とかいれて間隔を空ける&lt;br /&gt;
&lt;br /&gt;
==リストのスクロールが下に行かない場合==&lt;br /&gt;
#ScrollViewのViewportのContentの下にAddComponentでContentSizeFitterを追加&lt;br /&gt;
#ContentSizeFitterのVerticalfitをUnconstrainedからPreferredSizeにする&lt;br /&gt;
==縦スクロールリストでテキストの高さを自動調整==&lt;br /&gt;
#HierarchyからUI/ScrollViewを作成。&lt;br /&gt;
#Canvasの下にScrollViewができてることを確認。&lt;br /&gt;
#ScrollView/Viewport/ContentのInspectorに、VerticalLayoutGroupを、AddComponentする&lt;br /&gt;
#ScrollView/Viewport/ContentのInspectorに、CotentSizeFitterを、AddComponentする&lt;br /&gt;
#ScrollView/Viewport/ContentのInspectorの、VerticalLayoutGroupのControlChildSizeのHeightに、チェック&lt;br /&gt;
#ScrollView/Viewport/ContentのInspectorの、VerticalLayoutGroupのChildAlignmentをUpperLeftへ&lt;br /&gt;
#ScrollView/Viewport/ContentのInspectorの、CotentSizeFitterのVerticalFitを、UnconstrainedからPreferredSizeへ変更する&lt;br /&gt;
#UI/Textを作り、ScrollView/Viewport/Contentの下に設置&lt;br /&gt;
テキストの幅を操作してと、自動で縦幅が調整されれば成功。&lt;br /&gt;
&lt;br /&gt;
==縦スクロールリストでグループ化してテキストの高さを自動調整==&lt;br /&gt;
#HierarchyからUI/ScrollViewを作成。&lt;br /&gt;
#Canvasの下にScrollViewができてることを確認。&lt;br /&gt;
#ScrollView/Viewport/ContentのInspectorに、VerticalLayoutGroupを、AddComponentする&lt;br /&gt;
#ScrollView/Viewport/ContentのInspectorに、CotentSizeFitterを、AddComponentする&lt;br /&gt;
#ScrollView/Viewport/ContentのInspectorの、VerticalLayoutGroupのControlChildSizeのHeightに、チェック&lt;br /&gt;
#ScrollView/Viewport/ContentのInspectorの、VerticalLayoutGroupのChildForceExpandのHeightに、チェック&lt;br /&gt;
#ScrollView/Viewport/ContentのInspectorの、VerticalLayoutGroupのChildAlignmentをUpperLeftへ&lt;br /&gt;
#ScrollView/Viewport/ContentのInspectorの、CotentSizeFitterのVerticalFitを、UnconstrainedからPreferredSizeへ変更する&lt;br /&gt;
#UI/Imageを作り、ScrollView/Viewport/Contentの下に設置&lt;br /&gt;
#UI/Textを作り、ScrollView/Viewport/Content/Imageの下に追加&lt;br /&gt;
#ScrollView/Viewport/Content/ImageにHorizontalLayoutGroupを追加し、ControlChildSizeのHeightにチェック&lt;br /&gt;
#ScrollView/Viewport/Content/ImageにContentSizeFitterのVerticalFitを、UnconstrainedからPreferredSizeへ変更する&lt;br /&gt;
Imageの中のテキストの幅を操作してと、自動でImageの縦幅が調整されれば成功。&lt;br /&gt;
&lt;br /&gt;
参考：https://tsubakit1.hateblo.jp/entry/2015/10/19/022720&lt;br /&gt;
&lt;br /&gt;
==横スクロールリストを作る==&lt;br /&gt;
#HierarchyからUI/ScrollViewを作成。&lt;br /&gt;
#Canvasの下にScrollViewができてることを確認。&lt;br /&gt;
#ScrollView/Viewport/ContentのInspectorに、HorizontalLayoutGroupを、AddComponentする&lt;br /&gt;
#ScrollView/Viewport/ContentのInspectorに、CotentSizeFitterを、AddComponentする&lt;br /&gt;
#ScrollView/Viewport/ContentのInspectorの、HorizontalLayoutGroupのChildForceExpandのWidthに、チェック&lt;br /&gt;
#ScrollView/Viewport/ContentのInspectorの、HorizontalLayoutGroupのChildAlignmentをMiddleCenterへ&lt;br /&gt;
#ScrollView/Viewport/ContentのInspectorの、CotentSizeFitterのHorizontaiFitを、UnconstrainedからPreferredSizeへ変更する&lt;br /&gt;
#UI/Imageを作り、Resourcesへ移動&lt;br /&gt;
#以下コードを追加&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
public class SampleScene : MonoBehaviour&lt;br /&gt;
{&lt;br /&gt;
    void Start()&lt;br /&gt;
    {&lt;br /&gt;
        int cnt = 3;&lt;br /&gt;
        for (int i = 0; i &amp;lt; cnt; i++) {&lt;br /&gt;
            InstantiateImage();&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    void InstantiateImage()&lt;br /&gt;
    {&lt;br /&gt;
        GameObject parent = GameObject.Find(&amp;quot;/Canvas/Scroll View/Viewport/Content&amp;quot;);&lt;br /&gt;
        GameObject prefab = (GameObject)Resources.Load(&amp;quot;Image&amp;quot;);&lt;br /&gt;
        GameObject imageObj = Instantiate(prefab, Vector3.zero, Quaternion.identity, parent.transform);&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===prefabの上下左右が微妙にずれる場合===&lt;br /&gt;
#ScrollView/Viewport/ContentのInspectorのHorizontalLayoutGroupのPaddingの数値を適宜変更する&lt;br /&gt;
&lt;br /&gt;
===一番右に移動する===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GameObject scrollObj = GameObject.Find(&amp;quot;/Canvas/Scroll View&amp;quot;);&lt;br /&gt;
ScrollRect scroll = scrollObj.GetComponent&amp;lt;ScrollRect&amp;gt;();&lt;br /&gt;
scroll.horizontalNormalizedPosition = 1f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>