• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 581 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0056 秒)

21. PBRStandardMaterial材质详解(ActionScript-3D基础(AS3)-模型材质详解) [ 88%]

...el/Materials/Textures/Barrel_AlbedoTransparency.png', Handler.create(this, function(texture:Texture2D):void { mat.albedoTexture = texture; })); //法线贴图 Texture2D.load('res/threeDimen/scene/PBRMaterialScene/Assets/PBR Barrel/Materials/Textures/Barrel_Normal.png', Handler.create(this, function(...

来源: Laya2.0_文档 发布时间: 20210714

22. 超出文本区域的处理&滚动文本(ActionScript-LayaAir基础篇(AS3)-文本) [ 88%]

...display.Text; import laya.webgl.WebGL; public class Text_AutoSize { public function Text_AutoSize() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); setup(); } private function setup():void { var t1:Text = createText(); //设置不进行任何裁剪 t1.overflow = Text.VISIBLE;...

来源: Laya2.0_文档 发布时间: 20210715

23. SkyBoxMaterial材质详解(ActionScript-3D基础(AS3)-天空材质详解) [ 87%]

...al.load("res/threeDimen/skyBox/DawnDusk/SkyBox.lmat", Handler.create(this, function(mat:SkyBoxMaterial):void { //获取相机的天空渲染器 var skyRenderer:SkyRenderer = camera.skyRenderer; //创建天空盒的mesh skyRenderer.mesh = SkyBox.instance; //设置天空盒材质 skyRenderer.material ...

来源: Laya2.0_文档 发布时间: 20210715

24. ProgressBar属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 87%]

... public class UI_ProgressBar { private var progressBar:ProgressBar; public function UI_ProgressBar() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); //画布垂直居中对齐 Laya.stage.alignV = Stage.ALIGN_MIDDLE; //画布水平居中对齐 Laya.stage.alignH = Stage.ALIGN_C...

来源: Laya2.0_文档 发布时间: 20210715

25. 我用as3调试的matter.js,刚体发生碰撞后不会旋转,我的代码在附件里 [ 87%]

...rivate var url_img:String = "res/";                    public function WWJ_Main()          {             Laya.init(stageWidth, stageHeight);                          Laya.stage.alignV = Stage.ALIGN_MIDDLE;             Laya.stage.alignH = Stage....

来源: Laya_社区 发布时间: 20170822

26. as3中如何定义html中的id参数 [ 87%]

...人脸识别的: Browser.window.$('#mvideo').faceDetection({ complete: function (faces):void { trace("faces: "+ faces); }, error:function (code, message):void { trace('Error: ' + message); } }); Laya_Aaron • 2018-06-25 21:01 之后使用需要用js调 需要用__JS__("里面放j...

来源: Laya_社区 发布时间: 20180625

27. 使用百度地图显示当前位置(ActionScript-LayaAir基础篇(AS3)-硬件设备相关) [ 87%]

...地图的div容器 ``` ### 二、接着是构造函数: ```java public function WatchPosition() { Laya.init(1, 1);   init();   // 使用高精度位置 Geolocation.enableHighAccuracy = true; Geolocation.watchPosition(Handler.create(this, updatePosition), Handler.create(this, onError)); ...

来源: Laya2.0_文档 发布时间: 20210715

28. 绘制直线与折线(ActionScript-LayaAir基础篇(AS3)-矢量图) [ 87%]

...   private var sp:Sprite;                   public function Sprite_DrawShapes()         {             Laya.init(500, 300, WebGL);             drawSomething();         }           private function drawSomething():void    ...

来源: Laya2.0_文档 发布时间: 20210714

29. LayaAirIDE中第一个程序“Hello Layabox”(ActionScript-LayaAir基础篇(AS3)-快速上手) [ 87%]

...ext;     public class HelloLayabox     {         public function HelloLayabox()         {             //创建舞台,默认背景色是黑色的             Laya.init(600, 300);             var txt:Text = new Text();       ...

来源: Laya2.0_文档 发布时间: 20210715

30. 位图字体的制作与使用(ActionScript-LayaAir基础篇(AS3)-文本) [ 87%]

...r mFontName:String = "diyFont"; private var mBitmapFont:BitmapFont; public function TestBitmapFont() { Laya.init(550, 400); mBitmapFont = new BitmapFont(); //这里不需要扩展名,外部保证fnt与png文件同名 mBitmapFont.loadFont("layabmfont.fnt",new Handler(this,onLoaded)); } private func...

来源: Laya2.0_文档 发布时间: 20201114