Expand GetDefaultByType's description

- Fix syntax grammar in language doc
- Expand GetDefaultByType's description
pull/1/head
an 2018-11-24 16:29:20 -05:00
parent 822917c0b6
commit afae89a87a
2 changed files with 3 additions and 3 deletions

View File

@ -737,7 +737,7 @@ The syntax for an argument list is:
Expression $[ , Expression]$...
```
Function calls may name arguments which have defaults with the syntax `Identifier: Expression`, possibly skipping over other defaulted arguments. After the first named defaultable argument, all other arguments must be named as well.
Function calls may name arguments which have defaults with the syntax `Identifier : Expression`, possibly skipping over other defaulted arguments. After the first named defaultable argument, all other arguments must be named as well.
### Unary expressions

View File

@ -162,13 +162,13 @@ Global Functions
### Class Handling
```
Type GetDefaultByType(TypeName);
Type GetDefaultByType(class<Actor> type);
Type New(class typename = ThisClass);
```
- `GetDefaultByType`
Gets the default value of any built-in type.
Returns an object containing the default values for each member of the `Actor` type provided as they would be set in `BeginPlay`. **Note that the return value cannot be serialized and if stored must be marked as `transient`.** The returned object is a pseudo-object which is stored only in-memory.
- `New`