Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

在InlineText组件里添加Content Size Fitter组件不起作用 #31

Open
oldLetter opened this issue Jan 11, 2019 · 3 comments
Open

Comments

@oldLetter
Copy link

添加Content Size Fitter组件,RectTransform大小不会跟着文字内容变化而变化

@lizijie
Copy link
Contributor

lizijie commented Jun 26, 2019

@oldLetter 你是想文字背景图随着InlineText文字的变化调整大小?

@voidweapon
Copy link

voidweapon commented Sep 18, 2019

@oldLetter InlineText 组件的对应方向的Overflow类型需要是Overflow
@lizijie @coding2233 UGUI的Content Size Fitter组件不会要求组件的Overflow类型,而是直接读取组件的perfectHeigh,perfectWidth,minHeigh,minWidth. 但是InlineText组件的perfectHeigh,perfectWidth计算过程中使用了各方向的Overflow的类型。所以造成了InlineText组件与Content Size Fitter的使用习惯产生差异

@thrt520asd
Copy link

可以参考 我的临时解决方案,不美观但是很好用 #49

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants