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

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

81. as3版的Tween的Complete报错 [ 82%]

... ohkei - as3、as2、h5 赞同来自: Tween.to(logo, {x:550}, 3000, null, function(){       trace("logo complete"); }); 报错如下:     2017-03-27 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 ohkei as3、as2、h5 相关问题 ...

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

82. Panel使用文档(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 82%]

... laya.ui.Panel; import laya.utils.Handler; public class PanelTest { public function PanelTest() { //初始化引擎 Laya.init(800,600); //预加载所需资源 Laya.loader.load("res/atlas/comp.atlas",Handler.create(this,onLoaded)); } private function onLoaded():void { //实例化Panel组件 var pane...

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

83. Unlit材质详解(ActionScript-3D基础(AS3)-模型材质详解) [ 81%]

... Texture2D.load("res/threeDimen/texture/earth.png", Handler.create(this, function(texture:Texture2D):void { //设置反照率贴图 material2.albedoTexture = texture; })); earth2.meshRenderer.material = material2; ``` ![](img/1.png)(图1)

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

84. 用as3写的排行榜渲染报错, [ 81%]

...axUI.ts有前缀导致报错 导微信小程序报错window.focus is not a function Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? runtime运行报错! 用了ByteArray的zlib.min.js后报错 排行榜的创建 问题状态 最新活动: 2018-09-01 20:43 浏览: 1057 关...

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

85. Effect材质详解(ActionScript-3D基础(AS3)-模型材质详解) [ 81%]

... Texture2D.load("res/threeDimen/texture/earth.png", Handler.create(this, function(texture:Texture2D):void { //设置纹理 material.texture = texture; })); earth.meshRenderer.material = material; ``` ![](img/1.gif)(图12)

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

86. 物理系统之FixedConstraint(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 80%]

...gidBody2); ``` - 3.设置约束的breakForce ```typescript override public function onStart() { this.fixedConstraint = this.owner.getComponent(FixedConstraint); //设置打破约束的力的阈值 this.fixedConstraint.breakForce = 1000; } override public function onUpdate() { if(this.fixedConstraint...

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

87. 原生js如何调用laya里的方法? [ 80%]

...不知道怎么访问与调用,找了好多的方法都没法使用: (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+...

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

88. 材质的加载(ActionScript-3D基础(AS3)-LayaAir3D之Material材质) [ 80%]

...质加载 BaseMaterial.load("res/skyBox2/skyBox2.lmat",Handler.create(this,function(mat:BaseMaterial):void { var skyRenderer:SkyRenderer = camera.skyRenderer; //创建天空盒的mesh skyRenderer.mesh = SkyBox.instance; //设置天空盒材质 skyRenderer.material = mat; })); ``` ![](img/1.png)(图1...

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

89. BlinnPhong材质详解(ActionScript-3D基础(AS3)-模型材质详解) [ 80%]

... Texture2D.load("res/threeDimen/texture/earth.png", Handler.create(this, function(texture:Texture2D):void { //设置材质纹理 material.albedoTexture = texture; })); //material.albedoTexture earth2.meshRenderer.material = material; ``` ![](img/4.png)(图4) ##### 法线贴图 **Normal maps(法线...

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

90. 摄像机动画的使用(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 80%]

...t Scene3D.load('LayaScene_scene/Conventional/scene.ls',Handler.create(this,function(scene:Scene3D):void{ Laya.stage.addChild(scene); })); ``` ![](img/2.gif)(图2)

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