---
description: ✔
---

# ValueToString

## Overview

This component converts any value coming from an event or a scriptable variable to string. After converting the value it will invoke its Event **ToString**() so it can be connected to any Text UI component.

![](https://963537199-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lzhr1XSMzMqNXjRnNlb%2F-MTr1hTU5311odoh9J0X%2F-MTr2CPihJLJbitx9w2O%2Fimage.png?alt=media\&token=3d40356c-f8be-4a2b-991f-1852679f12bb)

## Parameters

### Float Decimals

If the value send is a float value, how many decimals, the value converted to string will have.

### Prefix

A prefix added to the converted  string value. (Optional)&#x20;

### Suffix

A Suffix added to the converted  string value. (Optional)&#x20;

### To String Event

After the value is converted; by calling the method ToString(); This event will be invoked.

## Methods

### ToString(..)

Converts any value to string (int, bool, float, gameObject, Component, Vector3, Vector2).





