adic icon indicating copy to clipboard operation
adic copied to clipboard

Binding to a UnityUI object caused RectTransform to bind too

Open extrakun opened this issue 8 years ago • 1 comments

I have observed that binding a GameObject that has a RectTransform to it as a Transform will cause a binding to be made to RectTransform as well:

	this.AddContainer (mainContainer)
				.RegisterExtension<UnityBindingContainerExtension> ()
                                .Bind<Transform> ().ToGameObject ("SectorPanel").As ("SectorPanel")

will result in:

image

extrakun avatar Jun 03 '17 10:06 extrakun

That's a curious case. It should not happen!

I'll take a look into it and release a fix on the next version!

intentor avatar Jun 06 '17 00:06 intentor