Class FieldExtensions
- Namespace
- MonkeyLoader.Resonite
- Assembly
- MonkeyLoader.Resonite.Core.dll
Contains extension methods for fields and other world elements
public static class FieldExtensions
- Inheritance
-
FieldExtensions
- Inherited Members
Methods
GetReferenceLabel(IWorldElement?)
Creates a label describing the target reference almost as a FrooxEngine.RefEditor would.
public static string GetReferenceLabel(this IWorldElement? target)
Parameters
targetIWorldElementThe reference to label.
Returns
- string
A label for the
targetreference if it is notnull; otherwise,"<i>null</i>".
Remarks
For FrooxEngine.Slots, their FrooxEngine.Components, and the fields of those the behavior is the same.
For FrooxEngine.Users, this format is instead:
$"<noparse>{targetUser.UserName}
({target.ReferenceID})</noparse>"