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

大约有 893 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0045 秒)

841. 显示与切换图片(TypeScript-LayaAir基础篇(TS)-位图) [ 35%]

...解laya.net.LoaderManager中的load()方法和getRes()方法,以及laya.utils.Handler中的create()方法,各方法的参数图3、图4、图5、图6所示: ![图3](img/3.png) (图3) ![图4](img/4.png) (图4) ![图2](img/5.png) (图5) ![图2](img/6.png) (图6) ### 2.2 用drawTexture 加载显...

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

842. 灯光-聚光 [ 35%]

...els.Mesh; import laya.display.Stage; import laya.events.Event; import laya.utils.Stat; import common.CameraMoveScript; /** * ... * @author ... */ public class SpotLightDemo { private var _quaternion:Quaternion = new Quaternion(); private var _position:Vector3 = new Vector3(); public function SpotLig...

来源: Laya_示例 发布时间: 20241002

843. 脚本组件继承于 Laya.Script。 其中的_update方法,多长时间会调用一次? 可以设置调用时间吗? [ 35%]

...进去的? ------------------------------------------- declare module laya.utils { /** * <code>Timer</code> 是时钟管理类。它是一个单例,可以通过 Laya.timer 访问。 */ class Timer { private static _pool; /** 时针缩放。*/ scale: number; /** 当前时间。*/ currTi...

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

844. 鼠标交互-修正交互区域 [ 34%]

...lay.Stage; import laya.display.Text; import laya.events.Event; import laya.utils.Browser; import laya.webgl.WebGL; public class Interaction_FixInteractiveRegion { private var logger:Text; public function Interaction_FixInteractiveRegion() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser...

来源: Laya2.0_示例 发布时间: 20241002

845. Laya 安卓端 在服务端运行指令layadcc ./ 后进不去,提示 assetId is old 和 init dcc fail。然后过五六个小时后才不会报这个错。。才能进去 [ 34%]

...>>>>>>>>>>>>>className:layaair.game.utility.ProcessInfo,methodName:getTotalMem     >>>>>>>>>>>>before 12-09 22:04:33.106 12728-12832/? E/LayaBox: >>>>>>>>>>>>after 12-09 22:04:33.106 12...

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

846. 材质-PBRStandard材质 [ 33%]

...s.SkyBox; import laya.display.Stage; import laya.events.Event; import laya.utils.Stat; /** * ... * @author ... */ public class PBRStandardMaterialDemo { public function PBRStandardMaterialDemo() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_...

来源: Laya_示例 发布时间: 20241002

847. 自定义shader-简单shader [ 33%]

...ort laya.d3.shader.ShaderCompile3D; import laya.display.Stage; import laya.utils.Stat; import common.CameraMoveScript; import shaderModule.customMaterials.CustomMaterial; /** * ... * @author ... */ public class Shader_Simple { private var rotation:Vector3 = new Vector3(0, 0.01, 0); public function S...

来源: Laya_示例 发布时间: 20241002

848. 如何使用vscode编译laya项目 [ 33%]

...al feature and could change at any time. laya_ide_time.require.single.gulp-util: 7.87ms gulp.js:8 laya_ide_time.require.single.pretty-hrtime: 2.2ms gulp.js:8 laya_ide_time.require.single.chalk: 10.4ms gulp.js:8 laya_ide_time.require.single.semver: 5.05ms gulp.js:8 laya_ide_time.require.single.archy:...

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

849. 二进制图片(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 33%]

...Sprite; import laya.events.Event; import laya.net.HttpRequest; import laya.utils.Browser; public class LayaSample { public function LayaSample() { //初始化引擎 Laya.init(1136, 640); var sp:Sprite = new Sprite(); var xhr:HttpRequest = new HttpRequest(); xhr.once(Event.COMPLETE,this,completeHandl...

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

850. [LayaAirIDE 2.0]TextInput真机输入时显示蓝色字,求解 [ 32%]

...e from "../../network/interfaces/IHttpResponse"; import Notice from "../../utils/Notice"; export default class AuthReg extends ui.AuthRegUI { /** 密码临时存储 */ private _tmp_pwd: string = ""; /** 输入框数组 */ private _arrInput: Laya.TextInput = [this.input_nickname, this.input_mobile, t...

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