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

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

181. 使用发光滤镜和模糊滤镜一直报错 [ 56%]

....ts:36)     at EventHandler.__proto.runWith (laya.core.js:1399)     at Label.__proto.event (laya.core.js:1156)     at TouchManager.__proto.sendEvents (laya.core.js:11253)     at TouchManager.__proto.onMouseUp (laya.core.js:11412)     at MouseManager.__proto.onMouseUp (laya.core.js:12564) ...

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

182. 如何实现3d遮罩效果? [ 56%]

...on(); btn.skin = "../../../../res/threeDimen/ui/button.png"; btn.label = "切换RenderTexture"; btn.labelBold = true; btn.labelSize = 20; btn.sizeGrid = "4,4,4,4"; btn.size(200, 30); btn.scale(Browser.pixelRatio, Browser.pixelRatio); btn.pos(Laya.stage.width / 2 - btn.w...

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

183. IDE中自定义组件后,组件XML设置prop,在代码中如何获取(js) [ 55%]

...mponent.ScaleButton" runClass="component.ScaleButton" inherit="Button" skinLabel="skin" >>   defaultValue="label=''" resName="sButton" icon="Box" groups="公用, 常用, 宽高及位置" drag="3"> >>   <prop name="scaleTime" tips="缩放使用的时间" type="number" default="1...

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

184. 动画状态机详解 · LayaAir3.0文档 · LAYABOX [ 54%]

...regClass() export class Main extends Laya.Script { @property( { type: Laya.Label } ) private label: Laya.Label; @property( { type: Laya.Sprite3D } ) private target: Laya.Sprite3D; private animator : Laya.Animator; onStart() { this.label.on( Laya.Event.CLICK, this, this.test ); //获得状态机 this...

来源: Laya3.0_文档 发布时间: 20230804

185. 射线检测-碰撞器混合 [ 53%]

...port laya.events.Keyboard; import laya.events.MouseManager; import laya.ui.Label; import laya.utils.Browser; import laya.utils.Handler; import laya.utils.Stat; import laya.utils.Tween; import laya.webgl.WebGLContext; public class ColiderDemo { /**键盘的上下左右控制猴子位移**/ private va...

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

186. LAYABOX游戏实时语音之APP版本 [ 53%]

...tion android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name"> <activity android:name="demo.MainActivity" android:screenOrientation="landscape" android:windowSoftInputMode="stateHidden|adjustPan" android:configChanges="keyboard|keyboardHidden|screenLayout|...

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

187. 请问,如何获得StandardMaterial,为什么transformUV始终是null [ 53%]

...       changeActionButton.size(160, 40);         changeActionButton.labelBold = true;         changeActionButton.labelSize = 30;         changeActionButton.sizeGrid = "4,4,4,4";         changeActionButton.scale(Laya.Browser.pixelRatio, Laya.Browser.pixelRatio);         changeA...

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

188. SCALE_FIXED_WIDTH适配屏幕的问题 [ 52%]

...p 如果是app,可能是全面屏设备问题   <application android:label="@string/app_name" android:icon="@drawable/icon"> <meta-data android:name="android.app.lib_name" android:value="cocos2dlua" /> <meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/...

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

189. Morn下List组件如何给每一条列表添加Click事件,是需要for吗? [ 52%]

...super(); var arr:Array=[]; for(var i:int=0;i<95;i++) { arr.push({icon:i,label:"Index"+i}); } boxList.array=arr; boxList.mouseHandler=new Handler(listRender); } private function listRender(e:MouseEvent,index:int):void { // TODO Auto Generated method stub if(e.type==MouseEvent.CLICK) { if(index==2)...

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

190. 正常运行的2.1升级到2.2.0出现循环依赖的错误,这是咋回事丫 ? [ 51%]

...json"' } stdout src/ui/layaMaxUI.ts(7,19): error TS2304: Cannot find name 'Label'. src/ui/layaMaxUI.ts(8,18): error TS2304: Cannot find name 'Label'.  [16:39:28] Finished 'tsc' after 10 s [16:39:28] Starting 'tsc:compile'... tsc compile completed! [16:39:28] Finished 'tsc:compile' after 36 μs ----...

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