-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TextExtrusion.as #6
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is code correction for allowing material to be supplied and depth to be a required param, replace constructor:
Usage:
// Give 3D text some depth via TextExtrusion class
var extrusionMaterial:WireColorMaterial = new WireColorMaterial(0x666666);
var textExtrusion:TextExtrusion = new TextExtrusion(txt,extrusionMaterial,150);
textExtrusion.bothsides = true;
//textExtrusion.material = new WireColorMaterial(0x666666); // Dont work in 3.6 Dated: 27-07-2011
//textExtrusion.back = new WireColorMaterial(0x666666); // Dont work in 3.6 Dated: 27-07-2011
textExtrusion.z = txt.z;
scene.addChild(textExtrusion);
The text was updated successfully, but these errors were encountered: