Author Topic: Vertex Jitter only characters within a tag?  (Read 1220 times)

scottsummers

  • Newbie
  • *
  • Posts: 2
Vertex Jitter only characters within a tag?
« on: May 11, 2017, 03:22:24 AM »
I've been loving using TextMeshPro!


I'm trying to apply vertex jitter to only the characters within a tag in the string.  Is that possible?

(VertexJitter.cs is a great script, but it jitters all characters in the string.)


Thank you!

Stephan B.

  • Administrator
  • Hero Member
  • *****
  • Posts: 5687
Re: Vertex Jitter only characters within a tag?
« Reply #1 on: May 11, 2017, 09:37:51 AM »
I've been loving using TextMeshPro!


I'm trying to apply vertex jitter to only the characters within a tag in the string.  Is that possible?

(VertexJitter.cs is a great script, but it jitters all characters in the string.)


Thank you!

The Jitter example script iterates over all the characters contained in the text. If you were to modify this script, you could implement your own method to only change certain words or characters.

Long term, I do plan on adding a new tag <action="Jitter" params="...">Some text to jitter</action> where the action will call a delegate function which would only affect the characters / text enclosed in the tag.