大约有 458 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0234 秒)
...)能够取出该View上绑定的数据。 但是在Laya的UI系统(或者Sprite)中,确没有找到对应的属性。 该属性类比来说比较像cocos2dx Node的userData属性. 请问这块Laya的解决方案是什么。 2018-05-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20180528
...fined in laya/display/Node.ts:56 _graphics _graphics: AutoBitmap Overrides Sprite._graphics Defined in laya/ui/Image.ts:98 _ownGraphics _ownGraphics: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Inherited from Node._scene Defined in laya/...
来源: Laya3.0_api 发布时间: 20231115
...lass() export class Animation extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Animation }) //在IDE面板中显示属性 ani: Laya.Animation; constructor() { super(); } //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次...
来源: Laya3.0_文档 发布时间: 20251010
...gelaya.uiClasspublic class TextInputInheritanceTextInput Label UIComponent Sprite Node EventDispatcher ObjectSubclasses TextArea TextInput 类用于创建显示对象以显示和输入文本。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By a...
来源: Laya2.0_api 发布时间: 20190513
...m() * 0.5 + 0.8; //创建圆锥形3D模型节点对象 let cone = new Laya.Sprite3D; let coneMesh = cone.addComponent(Laya.MeshFilter); let coneRender = cone.addComponent(Laya.MeshRenderer); // 创建网格 coneMesh.sharedMesh = Laya.PrimitiveMesh.createCone(0.25, 0.75); // 创建材质 let coneMate...
来源: Laya3.0_文档 发布时间: 20251010
...ts Packagelaya.uiClasspublic class MoreGameInheritanceMoreGame View Scene Sprite Node EventDispatcher Object 游戏中心插件 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是否激活。 Node activeInHierarc...
来源: Laya2.0_api 发布时间: 20190513
...wnerColliderComponent为false,您可以修改代码,let Spr = new Laya.Sprite(); Spr.pos(200, 100); let RigidBody = Spr.addComponent(Laya.RigidBody); RigidBody.applyOwnerColliderComponent = false; RigidBody.gravityScale = 0; 先手动设置。在即将推出的3.3.2版本中,我们也会在引...
来源: Laya_社区 发布时间: 20250920
...| Events Packagelaya.device.mediaClasspublic class VideoInheritanceVideo Sprite Node EventDispatcher Object Video将视频显示到Canvas上。Video可能不会在所有浏览器有效。 关于Video支持的所有事件参见:http://www.w3school.com.cn/tags/html_ref_audio_video_dom.asp。 注意...
来源: Laya2.0_api 发布时间: 20190513
...thods | Events Packagelaya.uiClasspublic class ViewInheritanceView Scene Sprite Node EventDispatcher ObjectSubclasses Dialog, MoreGame View 是一个视图类,2.0开始,更改继承至Scene类,相对于Scene,增加相对布局功能。 Public Properties Hide Inherited Public Properties Sho...
来源: Laya2.0_api 发布时间: 20190513
关于遍历产生的sprite的点击事件,急,大神帮看哈 var sp; for(var i=0;i<5;i++){ sp=new Laya.Sprite(); sp.index=i; Laya.stage.addChild(sp); } 类似这样遍历出来的sprite 我怎么给每个sprite添加一个点击事件获得对应的sp.index值呢! 2017-02-21...
来源: Laya_社区 发布时间: 20170221