A internal class in Root.Township, Alta.OculusLogin. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.
Client UI component on the login screen that fills in the device account name and the Alta account name text.
Constructors
| Member | What it is |
|---|
AccountNameTextReplacer() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
4 private and internal fields
| Member | What it is |
|---|
private TextRenderer altaAccountText | Text showing the Alta account username. |
private TextRenderer deviceAccountText | Text showing the platform (device) account display name. Was called oculusAccountText. |
private static readonly Logger logger | NLog logger for this class. |
private IUserService userService | The injected platform user service. |
Methods
| Member | What it is |
|---|
void UpdateFromInput(InputField input) | Sets the Alta account text to whatever is typed in the given input field. |
void UpdateFromLogin() | Sets the Alta account text to the username of the user logged in to the Alta API. |
protected void Inject(IUserService injectedUserService) | VContainer injection point; receives the IUserService. |
1 private and internal method
| Member | What it is |
|---|
private async void OnEnable() | Shows the platform user's display name, refreshing the logged-in platform user first if needed. |