Commit b11ea17
Fix warning about setting RectTransform's parent
Unity complains about setting a GameObject's parent directly if the GO has a RectTransform instead of normal Transform.
Using SetParent() the warning is gone while keeping the behaviour the same.1 parent 8be1293 commit b11ea17
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
| 195 | + | |
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| |||
0 commit comments