大约有 856 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0091 秒)
Laya_社区(264) Laya3.0_api(263) Laya2.0_api(142) laya_api(119) Laya3.0_文档(35) Laya2.0_文档(28) Laya_示例(3) Laya2.0_示例(2)
...ing = null) 创建一个新的 ScrollBar 实例。 Parameters skin:String (default = null) — 皮肤资源地址。 Method DetailchangeSize()methodoverride protected function changeSize():void 重新调整对象的大小。 createChildren()method override protected function createChildren():void ...
来源: laya_api 发布时间: 20170929
...ase 1: txt.color = "#ffffff"; break; case 2: txt.color = "#ff0000"; break; default: txt.color = "#eee000"; break; } } /** * 缓动完成后的回调方法 * txt 缓动对象 */ private changeColor(txt:Laya.Text):void{ //将文本字体改变成红色 txt.color = "#ff0000"; } //创建单个字符文...
来源: Laya2.0_文档 发布时间: 20210715
...FLY: this.icon.graphics.drawTexture(this.flyTexture, 0, 0, 40, 48); break; default: break; } } })(); 看代码 我们发现 依旧是将三种不同的图片默认初始化好 然后我们通过初始化的type来区分不同的物品 物品有了 我们得把他们放到地板上面 首先我们来...
来源: Laya_社区 发布时间: 20160803
...ing = null) 创建一个新的 ScrollBar 实例。 Parameters skin:String (default = null) — 皮肤资源地址。 Method Detail_sizeChanged()methodoverride protected function _sizeChanged():void_skinLoaded()method protected function _skinLoaded():voidcreateChildren()method override protected f...
来源: Laya2.0_api 发布时间: 20190513
...bel:String) 创建一个新的 Button 类实例。 Parameters skin:String (default = null) — 皮肤资源地址。 label:String — 按钮的文本内容。 Method DetailcreateChildren()methodoverride protected function createChildren():void 创建并添加控件子节点。 destroy()method ove...
来源: laya_api 发布时间: 20170929
...1: { txt.color="#FFFFFF"; break; } case 2: { txt.color="#FF0000"; break; } default: { txt.color="#EEE000"; break; } } } /** * 缓动完成后的回调方法 * @param txt 缓动对象 */ private function changeColor(txt:Text):void { //将文本字体改变成红色 txt.color="#FF0000"; } /** * 创建...
来源: Laya2.0_文档 发布时间: 20210715
...如下: ```typescript /** * TypeScript语言的3D脚本示例 */ export default class TSDemo extends Laya.Script3D { constructor() { super(); } } ``` > 2D脚本与3D脚本不要混用,如果是用IDE创建的脚本模板,需要将继承的2D脚本类(Laya.Script)改为3D脚本类(Laya.Sc...
来源: Laya2.0_文档 发布时间: 20210715
...方式。 在 LayaAir3 引擎中,纹理类型主要分为: 默认值(default) 光照贴图(lightmap) 精灵纹理(spriteTexture) 2.1.2 默认值 default 选择 默认值 时,几乎包含所有通用的纹理属性设置。其默认属性值偏向于3D场景中常见的贴图应用...
来源: Laya3.0_文档 发布时间: 20251128
...:01:10.221 15618-15618/? E/SELinux: [DEBUG] get_category: variable seinfo: default sensitivity: NULL, cateogry: NULL 03-19 15:01:10.386 3111-3111/? E/Tethering: No numeric data 03-19 15:01:10.391 6882-6882/? E/PlaceHolderContentViewRenderViewAdapter: APPLOGS: configHasChanged w=1080 h=1845 03-19 15:...
来源: Laya_社区 发布时间: 20180319
...bel:String) 创建一个新的 Button 类实例。 Parameters skin:String (default = null) — 皮肤资源地址。 label:String — 按钮的文本内容。 Method Detail_skinLoaded()method protected function _skinLoaded():voidcreateChildren()method override protected function createChildren():...
来源: Laya2.0_api 发布时间: 20190513