Method FindUsageTagFlags
|
Edit this page
View Source
FindUsageTagFlags(Piece, bool)
Optimistically guess the Piece.UsageTagFlags for a given Piece by the piece category, and optionally by attached components, prefab name and localized name.
Declaration
public Piece.UsageTagFlags FindUsageTagFlags(Piece piece, bool guessUsage)
Parameters
| Type |
Name |
Description |
| Piece |
piece |
The Piece to find the usage tags for. |
| bool |
guessUsage |
If true, Jötunn will try to guess the usage tags for pieces that have no usage tags set. |
Returns
| Type |
Description |
| UsageTagFlags |
All vanilla Piece.UsageTagFlags that match |