Skip to main content

AccountNameTextReplacer

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​

MemberWhat it is
AccountNameTextReplacer()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

4 private and internal fields
MemberWhat it is
private TextRenderer altaAccountTextText showing the Alta account username.
private TextRenderer deviceAccountTextText showing the platform (device) account display name. Was called oculusAccountText.
private static readonly Logger loggerNLog logger for this class.
private IUserService userServiceThe injected platform user service.

Methods​

MemberWhat 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
MemberWhat it is
private async void OnEnable()Shows the platform user's display name, refreshing the logged-in platform user first if needed.