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

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

191. Sprite3D的克隆(ActionScript-3D基础(AS3)-LayaAir3D之精灵) [ 96%]

# Sprite3D的克隆 ###### *version :2.0.1beta Update:2019-4-13* 关于克隆,LayaAir3D中提供了几种接口。比较常用的`clone`和`cloneto`这两种通用的方法就不多做介绍了。这里详细讲解下Sprite3D中特有的克隆接口`instantiate`。 ```typescript public function st...

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

192. laya.display.Scene_API3.0 [ 96%]

...过unDestroyedScenes属性查看还未被销毁的场景列表 Hierarchy Sprite Scene View Index Constructors constructor Properties _extra _ownGraphics _scene _scene3D _skinBaseUrl _url autoDestroyAtClosed autoSize hitTestPrior mouseThrough name tag drawtocanvCtx unDestroyedScenes Accessors _isHeig...

来源: Laya3.0_api 发布时间: 20231115

193. laya.ui.TextInput [ 96%]

...kagelaya.uiClasspublic class TextInputInheritanceTextInput Label Component Sprite Node EventDispatcher ObjectSubclasses TextArea TextInput 类用于创建显示对象以显示和输入文本。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By a...

来源: laya_api 发布时间: 20170929

194. Sprite生成的mask对Sprite作用时显示不正确 [ 96%]

Sprite生成的mask对Sprite作用时显示不正确 两个Spirte,当其中一个给另一个当mask的时候,显示不正确,尺寸和位置都有问题,1.x和2.x的引擎都存在此问题   let miniMap = new Laya.Sprite(); miniMap.autoSize = true; miniMap.graphics.drawRect(0,0,100,100, ...

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

195. laya.ui.UIComponent_API3.0 [ 96%]

...lize > createChildren > initialize > 组件构造函数 Hierarchy Sprite UIComponent Box ISelect Button Clip ColorPicker Label Image Slider ScrollBar ComboBox ProgressBar TipManager OpenDataContextView Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url au...

来源: Laya3.0_api 发布时间: 20231115

196. Sprite-切换纹理 [ 96%]

...1.png", monkey2Str = "res/apes/monkey2.png", monkey1Res, monkey2Res; class Sprite_SwitchTexture { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.al...

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

197. sprite3D下增加一个Laya.SphereCollider,然后sprite移动,就无法检测到碰撞了! [ 96%]

sprite3D下增加一个Laya.SphereCollider,然后sprite移动,就无法检测到碰撞了! 移动后,boundSphere.center的坐标有随sprite3D移动,但是碰撞检测就永远是失败,不移动的时候是可以检测的,碰撞用的是屏幕射线的那个例子。是物体移动后...

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

198. 音频-播放演示 [ 96%]

...setup(); } setup() { const Event = Laya.Event; var gap = 10; //创建一个Sprite充当音效播放按钮 let soundButton = this.createButton("播放音效"); soundButton.x = (Laya.stage.width - soundButton.width * 2 + gap) / 2; soundButton.y = (Laya.stage.height - soundButton.height) / 2; //创建...

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

199. fixedheight情况下,如果让sprite居中于stage [ 96%]

fixedheight情况下,如果让sprite居中于stage 2016-12-13 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 layabox 赞同来自: http://layaair.ldc.layabox.com/demo/?SmartScale_T   关于适配,引擎示例...

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

200. laya.ui.Dialog [ 96%]

...stants Packagelaya.uiClasspublic class DialogInheritanceDialog View Scene Sprite Node EventDispatcher Object Dialog 组件是一个弹出对话框,实现对话框弹出,拖动,模式窗口功能。 可以通过UIConfig设置弹出框背景透明度,模式窗口点击边缘是否关闭等 ...

来源: Laya2.0_api 发布时间: 20190513