Namespace: updateSpriteTextGroup

SpriteText.SpriteText.updateSpriteTextGroup(group)

Call SpriteText.updateSpriteTextGroup if you want to update of the options of all SpriteText, added in to group and all child groups.
Parameters:
Name Type Description
group THREE.Group | THREE.Scene group or scene of the SpriteText and of all child groups of the SpriteText for which these settings will have an effect.
Source:
Example
<script>
	optionsSpriteText = {

		textHeight: 0.1,
		sizeAttenuation: false,

	}
	const fSpriteTextAll = SpriteTextGui( scene, options, {

		settings: { zoomMultiplier: 1.5, },
		options: optionsSpriteText

	} );

	//Change of the text height
	optionsSpriteText.textHeight = 0.2;

	//update of the options of all SpriteText, added in to group and all child groups
	SpriteText.updateSpriteTextGroup( group );

	//To do something...

	//Restore options.textHeight to 0.1
	fSpriteTextAll.userData.restore();
</script>