Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TryParse<T>(string, out T)

Try to parse an expression into a number.
Read time 1 minuteLast updated 4 days ago

Definition

TryParse<T>(string, T)

public static bool TryParse<T>(string expression, out T result)

Parameters

expression

Expression to be parsed.

result

T
Type of the numeric value.

Returns

Type

Description

boolReturns true if the parsing succeed.