2016-03-29 12 views

Trả lời

18

EDIT: Thành phần văn bản đã hạ cánh trong nhánh chính A-Frame. Điều này sẽ được triển khai trong 0.5.0. Hợp phần này sẽ có hỗ trợ cho phông chữ, sắp xếp, neo, đường cơ sở, shaders vv <a-entity text="value: HELLO"></a-entity>https://aframe.io/docs/master/components/text.html

Bạn có thể sử dụng một số thành phần của cộng đồng:

Tôi khuyên bạn nên Bitmap Font chữ Component đó là performant và trông trực quan tốt:

<html> 
    <head> 
    <script src="https://aframe.io/releases/0.2.0/aframe.min.js"></script> 
    <script src="https://rawgit.com/bryik/aframe-bmfont-text-component/master/dist/aframe-bmfont-text-component.min.js></script> 
    </head> 
    <body> 
    <a-scene> 
     <a-entity bmfont-text="text: HELLO!; color: #333" position="0 0 -5"></a-entity> 
    </a-scene> 
    </body> 
</html> 
Các vấn đề liên quan