# Search Results

1. Post

### "ArgumentOutOfRangeException: Index was out of range." on a }

"The preceding line" really means whichever line was executed immediately before it, which could be whatever opened the curly brace that was...
Post by: Antistone, Feb 25, 2020 at 11:56 PM in forum: Scripting
2. Post

### "ArgumentOutOfRangeException: Index was out of range." on a }

That probably means the error actually occurred on the preceding line, OR your source code is out of sync with your build.
Post by: Antistone, Feb 25, 2020 at 10:58 PM in forum: Scripting
3. Post

### How to accrue points while the user isnt playing?

True. This parallels the video game piracy debate, although I don't think the psychological factors for the consumer are equivalent between the...
Post by: Antistone, Feb 25, 2020 at 10:56 PM in forum: Scripting
4. Post

### How to accrue points while the user isnt playing?

If you're offering extra energy to players who pay you money or watch your ads, then cheating to get extra energy is presumably cutting into your...
Post by: Antistone, Feb 25, 2020 at 10:33 PM in forum: Scripting
5. Post

### How to accrue points while the user isnt playing?

I'm not sure it's worth jumping through hoops to prevent the player cheating energy if you're not going to prevent them from cheating on anything...
Post by: Antistone, Feb 25, 2020 at 10:22 PM in forum: Scripting
6. Post

### Determine whether an angle is concave compared to a mesh's middle

Seems like you just need to calculate the angles to the previous and next points and then check whether the angle you're testing lies between...
Post by: Antistone, Feb 25, 2020 at 9:45 PM in forum: Scripting
7. Post

### Determine if an angle is inner to a polygon defined by a list of points

Post by: Antistone, Feb 25, 2020 at 9:40 PM in forum: Scripting
8. Post

### How to accrue points while the user isnt playing?

As @csofranz says, the basic concept is to save the time while the user is playing, then next time they launch the game load that saved time,...
Post by: Antistone, Feb 25, 2020 at 9:35 PM in forum: Scripting
9. Post

### Updating 2 TextMeshPro UI elements from a script

Please use code tags. Instead of locating the text object using FindObjectOfType, try making the variable public and dragging the appropriate...
Post by: Antistone, Feb 25, 2020 at 9:22 PM in forum: Unity UI (uGUI) & TextMesh Pro
10. Post

### TextMesh Pro TMPro: Caret randomly disappearing (always shows in editor; not game)

Hypothesis: the caret is less than 1 pixel wide, and the width gets "rounded" differently depending on where "within" the pixel the caret happens...
Post by: Antistone, Feb 25, 2020 at 9:19 PM in forum: Unity UI (uGUI) & TextMesh Pro
11. Post

### Indentation of wrapped text

Try http://digitalnativestudios.com/textmeshpro/docs/rich-text/#indent
Post by: Antistone, Feb 25, 2020 at 9:15 PM in forum: Unity UI (uGUI) & TextMesh Pro
12. Post

### Problem with transform.RotateAround.

OK, several issues here... If you are currently at 45 degrees, and you want to rotate to 315 degrees, you are calculating a delta of (to - from)...
Post by: Antistone, Feb 25, 2020 at 8:15 PM in forum: Scripting
13. Post

### Help with multiplicative percentage calculator

Since multPercent is an int, "multPercent / 100" is an integer division that will round down to an integer. For example, 150 / 100 == 1, or 99 /...
Post by: Antistone, Feb 25, 2020 at 7:58 PM in forum: Scripting
14. Post

### Need to remove button "toggle" and replace with dice results

Perhaps it's one of several things the button does when clicked? It's implausible it would be the only thing.
Post by: Antistone, Feb 25, 2020 at 7:49 PM in forum: Scripting
unityunity