Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 385 Bytes

README.md

File metadata and controls

10 lines (6 loc) · 385 Bytes

cc-fit-label

cc-fit-label is Custom Component for CocosCreator.
It's changes the x-scale depending on the length of the string.

Usage

  1. add FitLabel.js to your Assets editor.

  2. You can add a component to any node. There's an Add Component button at the very bottom of Properties. Click the button and choose Add Custom Component -> FitLabel to add a new script component.