Пример #1
0
        public override void OnInspectorGUI()
        {
            serializedObject.Update();
            AdvancedText img = target as AdvancedText;

            EditorGUILayout.PropertyField(m_Text);
            EditorGUILayout.PropertyField(m_ImageSize);
            EditorGUILayout.PropertyField(m_IsPureEmoji);
            img.RayCastTarget = EditorGUILayout.Toggle("Raycast Target", img.RayCastTarget);
            EditorGUILayout.PropertyField(m_ImageFont);
            EditorGUILayout.PropertyField(m_FontData);
            AppearanceControlsGUI();
            serializedObject.ApplyModifiedProperties();
        }
Пример #2
0
 protected override void OnPopulateMesh(VertexHelper vh)
 {
     vh.Clear();
     AdvancedText.FillUIQuad(vh, vertexStream);
 }