大约有 1,151 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0049 秒)
...shRenderer' has been destroyed but you are still trying to access it. Your script should either check if it is null or you should not destroy the object. n.a (UnityEngine.SkinnedMeshRenderer A_0, System.String A_1, System.Boolean A_2) (at <f23f19a62c944610ba98639869d48a79>:0) n.b () (at <f2...
来源: Laya_社区 发布时间: 20210607
...的图形也是在宽高范围内。 */ export class DrawLine extends Laya.Script { declare owner: Laya.Sprite; line2DRender: Laya.Line2DRender; lastMousePos: number[] = []; isDrawing: boolean = false; // 标记是否正在绘制 // 组件被激活后执行,此时所有节点和组件均已创建...
来源: Laya3.0_文档 发布时间: 20251010
...文件。 在LayaExtInit函数中,导出上面这些函数,使得JavaScript代码可以调用这些原生功能。 extern "C" { LAYAEXTAPI void LayaExtInit(jsvm_env env, jsvm_value exp) { //注册新的函数 jsvm_value fn; jsvm_create_function(env, "testAdd", SIZE_MAX, jsAdd, nullptr, &fn);...
来源: Laya3.0_文档 发布时间: 20251010
...gClass, property } = Laya; @regClass() export class lightTest extends Laya.Script { declare owner: Laya.Sprite; @property({ type: Laya.Sprite }) light1: Laya.Sprite; @property({ type: Laya.Sprite }) mesh1: Laya.Sprite; @property({ type: Laya.Sprite }) mesh2: Laya.Sprite; private light1Render: Laya.F...
来源: Laya3.0_文档 发布时间: 20251010
...ance 一直等于-1? -------------------------------- class RoleControlScript extends Laya.Script{ /*角色模型*/ public roleModel:Laya.Sprite3D; /*角色动画组件*/ public roleAni:Laya.Animator; /*角色当前动作*/ public currentAction:string = "stand"; /*角色动画是否完成*/ publ...
来源: Laya_社区 发布时间: 20171113
...! Exit status 1 npm ERR! npm ERR! Failed at the electron@1.7.9 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional log ging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\guanll\AppData\Roaming\npm-cache\_logs\2...
来源: Laya_社区 发布时间: 20171027
...修改代码来切换单机版和网络版。 项目目录下的 resource/scripts/index.js 脚本的最后有个执行loadUrl的函数,这里会加载首页地址,修改这里的地址就能切换单机版和网络版,单机版的地址固定为 http://stand.alone.version/index.js。 例如,...
来源: Laya3.0_文档 发布时间: 20251010
...indow is not defined 真机调试报错:LayaPlayer不支持的标签</SCRIPT> IDE通过.ui自动生成的ui代码报错 laya2 发布微信开放域工程,用微信开发者工具打开报错 小游戏项目 加载有中文的json文件 报错 播放背景音乐的问题 刚打开 桌面调...
来源: Laya_社区 发布时间: 20180626
...如下: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { declare owner: Laya.Image; //组件被启用后执行,例如节点被添加到舞台后 onEnable(): void { //需要先加载图集再使用,注意,图集要放到resources目录下或者在...
来源: Laya3.0_文档 发布时间: 20251128
... { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { onAwake(): void { let img = new Laya.Image; Laya.stage.addChild(img); img.pos(500,100); img.skin = "resources/layabox.png"; //纹理压缩的图片的路径 } onStart() { Laya.Stat.show(0, 0); //性能面板 } } 发...
来源: Laya3.0_文档 发布时间: 20251010