| | |
| | | public static void CreateTextEx() |
| | | { |
| | | var instance = new GameObject("TextEx"); |
| | | instance.AddComponent<TextEx>(); |
| | | var text = instance.AddComponent<TextEx>();
|
| | | text.font = FontUtility.preferred; |
| | | text.fontSize = 22; |
| | | text.alignment = TextAnchor.MiddleCenter; |
| | | text.raycastTarget = false; |
| | | SetParent(instance); |
| | | } |
| | | |
| | |
| | | public static void CreateImageEx() |
| | | { |
| | | var instance = new GameObject("ImageEx"); |
| | | instance.AddComponent<ImageEx>(); |
| | | var image = instance.AddComponent<ImageEx>(); |
| | | image.raycastTarget = false; |
| | | SetParent(instance); |
| | | } |
| | | |
| | |
| | | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} |
| | | m_LocalPosition: {x: 0, y: 0, z: 0} |
| | | m_LocalScale: {x: 1, y: 1, z: 1} |
| | | m_ConstrainProportionsScale: 0 |
| | | m_Children: |
| | | - {fileID: 8818173244328049919} |
| | | m_Father: {fileID: 0} |
| | | m_RootOrder: 0 |
| | | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} |
| | | m_AnchorMin: {x: 0.5, y: 0.5} |
| | | m_AnchorMax: {x: 0.5, y: 0.5} |
| | |
| | | m_EditorClassIdentifier: |
| | | m_Navigation: |
| | | m_Mode: 3 |
| | | m_WrapAround: 0 |
| | | m_SelectOnUp: {fileID: 0} |
| | | m_SelectOnDown: {fileID: 0} |
| | | m_SelectOnLeft: {fileID: 0} |
| | |
| | | m_Material: {fileID: 0} |
| | | m_Color: {r: 1, g: 1, b: 1, a: 1} |
| | | m_RaycastTarget: 1 |
| | | m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} |
| | | m_Maskable: 1 |
| | | m_OnCullStateChanged: |
| | | m_PersistentCalls: |
| | |
| | | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} |
| | | m_LocalPosition: {x: 0, y: 0, z: 0} |
| | | m_LocalScale: {x: 1, y: 1, z: 1} |
| | | m_ConstrainProportionsScale: 0 |
| | | m_Children: [] |
| | | m_Father: {fileID: 6799213541382060757} |
| | | m_RootOrder: 0 |
| | | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} |
| | | m_AnchorMin: {x: 0.5, y: 0.5} |
| | | m_AnchorMax: {x: 0.5, y: 0.5} |
| | | m_AnchoredPosition: {x: 0, y: 0} |
| | | m_SizeDelta: {x: 144.9, y: 39.02} |
| | | m_SizeDelta: {x: 148, y: 50} |
| | | m_Pivot: {x: 0.5, y: 0.5} |
| | | --- !u!222 &3214953141854913601 |
| | | CanvasRenderer: |
| | |
| | | m_EditorClassIdentifier: |
| | | m_Material: {fileID: 0} |
| | | m_Color: {r: 0.2509804, g: 0.10980392, b: 0.023529412, a: 1} |
| | | m_RaycastTarget: 1 |
| | | m_RaycastTarget: 0 |
| | | m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} |
| | | m_Maskable: 1 |
| | | m_OnCullStateChanged: |
| | | m_PersistentCalls: |
| | |
| | | m_Font: {fileID: 12800000, guid: 7cd825c6867461a4090871836190730f, type: 3} |
| | | m_FontSize: 30 |
| | | m_FontStyle: 0 |
| | | m_BestFit: 1 |
| | | m_BestFit: 0 |
| | | m_MinSize: 2 |
| | | m_MaxSize: 30 |
| | | m_Alignment: 4 |
| | |
| | | m_IsKey: 0 |
| | | m_KeyName: |
| | | m_ColorType: 7 |
| | | m_BGColorType: 0 |
| | |
| | | { |
| | | m_AndroidProgressContainer.gameObject.SetActive(true); |
| | | m_IosProgressContainer.gameObject.SetActive(false); |
| | | m_Version.text = StringUtility.Contact(VersionConfigEx.Get().version, "_", VersionConfigEx.Get().buildIndex, LocalResManager.Id); |
| | |
|
| | | //打包版本 + 功能版本 + 语言ID
|
| | | m_Version.text = StringUtility.Contact(VersionConfigEx.Get().version, "_", VersionConfigEx.Get().buildIndex,
|
| | | "_", InitialFunctionConfig.Get("version").Numerical1, " ", LocalResManager.Id); |
| | | } |
| | | |
| | | |
| | |
| | | m_AnchorMin: {x: 0.5, y: 0.5} |
| | | m_AnchorMax: {x: 0.5, y: 0.5} |
| | | m_AnchoredPosition: {x: 0, y: 0} |
| | | m_SizeDelta: {x: 15000, y: 26680} |
| | | m_SizeDelta: {x: 2000, y: 4000} |
| | | m_Pivot: {x: 0.5, y: 0.5} |
| | | --- !u!222 &5139521211198942054 |
| | | CanvasRenderer: |