Title: Added support for RectTransform by ryanmeasel · Pull Request #3 · UnityPatterns/ObjectPool · GitHub
Open Graph Title: Added support for RectTransform by ryanmeasel · Pull Request #3 · UnityPatterns/ObjectPool
X Title: Added support for RectTransform by ryanmeasel · Pull Request #3 · UnityPatterns/ObjectPool
Description: The recttransform component throws a warning (as of Unity 4.6) when you set their parent via the transform property transform.parent: "Parent of RectTransform is being set with parent property. Consider using the SetParent method instead, with the worldPositionStays argument set to false. This will retain local orientation and scale rather than world orientation and scale, which can prevent common UI scaling issues." To circumvent this warning, we check if the parent has a RectTransform component and set the boolean worldPositionStays accordingly. Before calling GetComponent on the parent, the parent must be checked for existence. Doing so in this manner allows setting the parent transform without changing the local position, rotation or scale. For RectTransform, it also doesn't change the sizeDelta.
Open Graph Description: The recttransform component throws a warning (as of Unity 4.6) when you set their parent via the transform property transform.parent: "Parent of RectTransform is being set with parent proper...
X Description: The recttransform component throws a warning (as of Unity 4.6) when you set their parent via the transform property transform.parent: "Parent of RectTransform is being set with parent pr...
Opengraph URL: https://github.com/UnityPatterns/ObjectPool/pull/3
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:8a055c4b-403f-a009-2d56-dd6fc531fe18 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C8F4:BE79A:12C55:18DF1:6982B31B |
| html-safe-nonce | 4a15be56f2e071e506de9172db402f72104aef042e3eba58fdb075c7fba76059 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOEY0OkJFNzlBOjEyQzU1OjE4REYxOjY5ODJCMzFCIiwidmlzaXRvcl9pZCI6IjY1MTAyODc3NzIzNjcxMDY4NDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b3b45a1eb2a183a2835079a2619aa63453befa7b7246e711418a6127e676f7be |
| hovercard-subject-tag | pull_request:41645412 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/UnityPatterns/ObjectPool/pull/3/files |
| twitter:image | https://avatars.githubusercontent.com/u/186849?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/186849?s=400&v=4 |
| og:image:alt | The recttransform component throws a warning (as of Unity 4.6) when you set their parent via the transform property transform.parent: "Parent of RectTransform is being set with parent proper... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6741528aa4d4ba81c57bbff8f8cc0de0e9115cb2993431dc9dac8d489f7b4ee |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/UnityPatterns/ObjectPool git https://github.com/UnityPatterns/ObjectPool.git |
| octolytics-dimension-user_id | 5545416 |
| octolytics-dimension-user_login | UnityPatterns |
| octolytics-dimension-repository_id | 13115287 |
| octolytics-dimension-repository_nwo | UnityPatterns/ObjectPool |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 13115287 |
| octolytics-dimension-repository_network_root_nwo | UnityPatterns/ObjectPool |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c547e382acfeb1148025e943f9b5dc5a5e306b0e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width