internal void Register(WUIElement value) { if (baseComponents.wUIElements.Contains(value)) { return; } baseComponents.wUIElements.Add(value); if (value.billboardType == WUIElementBillboardType.Initial) { Billboard(value); } TMP_SelectionCaret[] selectionCarets = value.gameObject.GetComponentsInChildren <TMP_SelectionCaret>(); foreach (TMP_SelectionCaret selectionCaret in selectionCarets) { selectionCaret.material = baseData.wUIMaterial; } }
private void Billboard(WUIElement wUIElement) { wUIElement.transform.rotation = Quaternion.LookRotation(user.controllableCamera.transform.forward); }