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

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

131. 文本-单行输入 [ 90%]

...#666666"; inputText.color = "#ffffff"; inputText.fontSize = 20; Laya.stage.addChild(inputText); } })();module laya { import Input = Laya.Input; import Stage = Laya.Stage; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_InputSingleline { constructor() { // 不支持WebGL...

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

132. 分享:解决Dialog层级遮挡问题 [ 90%]

...会被删除,还是在Laya.stage节点上存在, 这时用Laya.stage.addChild方法添加了其他的ui后,在用Dialog.manager.popup或show方法添加dialog弹窗时 就会被盖到下面,这是正常的,如果不想被盖到下面,你可以在你游戏初始化后,建立自己的层...

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

133. 关于缓动函数from的一些问题记录 [ 90%]

...true); function onEaseComplete(){ console.log("ease complete"); Laya.stage.addChild(letterText); } ``` 以上的代码主要存在三个问题: 1. from()中的duration和delay都是以毫秒为单位,所以3,1想表示3秒,1秒需要使用3000,1000作为参数 2. Laya.Handler 的创建需要使用La...

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

134. 文本-禁止编辑 [ 90%]

...#666666"; inputText.color = "#ffffff"; inputText.fontSize = 20; Laya.stage.addChild(inputText); } })();module laya { import Input = Laya.Input; import Stage = Laya.Stage; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_Editable { constructor() { // 不支持WebGL时自动...

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

135. 文本-单行输入 [ 90%]

...nput() { const Input = Laya.Input; var inputText = new Input(); Laya.stage.addChild(inputText); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; inputText.y = Laya.stage.height - inputText.height >> 1; // 移动端输入提示符 inputText.prompt = "Type some word..."...

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

136. 文本-禁止编辑 [ 89%]

...nput() { const Input = Laya.Input; let inputText = new Input(); Laya.stage.addChild(inputText); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; inputText.y = Laya.stage.height - inputText.height >> 1; inputText.text = "这段文本不可编辑,但可复制"; inputT...

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

137. 骨骼动画进阶(ActionScript-2D进阶篇(AS3)-动画进阶) [ 89%]

... skeleton0.showSkinByIndex(1); //播放 skeleton0.play(0,true); Laya.stage.addChild(skeleton0); //创建第二个动画 var skeleton1:Skeleton; skeleton1 = templet.buildArmature(0); skeleton1.pos(500, 700); skeleton1.showSkinByIndex(1); skeleton1.play(0,true); Laya.stage.addChild(skeleton1); } } } `...

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

138. 文本-多行输入 [ 89%]

...#666666"; inputText.color = "#ffffff"; inputText.fontSize = 20; Laya.stage.addChild(inputText); } })();module laya { import Input = Laya.Input; import Stage = Laya.Stage; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_InputMultiline { constructor() { // 不支持WebGL时...

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

139. 加载不了模型 [ 89%]

...at.show();         //添加3D场景         var scene = Laya.stage.addChild(new Laya.Scene());         //添加照相机         var camera = (scene.addChild(new Laya.Camera(0, 0.1, 10000)));         camera.transform.translate(new Laya.Vector3(0, 5, 5));         camera.transf...

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

140. 引擎示例中的新手引导自己写了一次,不知道为什么无法实现点击。 [ 89%]

...dth = stage.width; var height = stage.height; var bg = new Sprite(); stage.addChild(bg); bg.texture = e; bg.on("click", this, onClick); var guideContainer = new Sprite(); stage.addChild(guideContainer); guideContainer.mouseEnabled = true; guideContainer.cacheAs = "bitmap"; var hitArea = new HitArea(...

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