当前位置: 首页 > news >正文

深圳网站建设app开发企业关键词排名优化哪家好

深圳网站建设app开发,企业关键词排名优化哪家好,新零售b2b网站做的最好的,重庆市建设工程信息网特种作业//在Ts、js中 this指向当前的这个组件实例 //this下的一个数据成员node,指向组件实例化的这个节点 //同样也可以根据节点找到挂载的所有组件 //this.node 指向当前脚本挂载的节点//子节点与父节点的关系 // Node.parent是一个Node,Node.children是一个Node[] // th…
//在Ts、js中 this指向当前的这个组件实例
//this下的一个数据成员node,指向组件实例化的这个节点
//同样也可以根据节点找到挂载的所有组件
//this.node 指向当前脚本挂载的节点//子节点与父节点的关系 
// Node.parent是一个Node,Node.children是一个Node[]
// this.node.parent //等同于
console.warn(this.node.parent.name);
// this.node.getParent()
console.warn(this.node.getParent().name);// this.node.children
this.node.children.forEach(element => {console.log("子节点")console.log(element.name);
});// 替换父节点 Node.parent = /Node.setParent(XX)
this.node.parent = this.AddBtn;
console.warn(this.node.parent.name)
// this.node.setParent(value: Node)
this.node.setParent(this.AddBtn);
console.warn(this.node.getParent().name);//添加节点 使用预制的时候@property(Node)AddBtn: Node = null!;@property(Prefab)sprite: Prefab = null!;
// addChild(child: Node)
let tempNode: Node = instantiate(this.sprite);
// addChild有可能造成内存泄露,尤其是加自己玩
this.node.addChild(tempNode);
this.node.children.forEach(element => {console.log("子节点");console.warn(element.name);
});
// siblingIndex:设置位置,等同于2.x的setIndex(index: number)
// insertChild(child: Node, siblingIndex: number)
this.node.insertChild(tempNode, 0);
this.node.children.forEach(element => {console.log("=子节点=");console.warn(element.name);
});
// getSiblingIndex()
// setSiblingIndex(index: number)//节点查找
find() //从1级节点开始查找
getChildByName(name: string)//下级节点
getChildByPath(path: string)//从下级节点开始算起,往下找
// let node = find("Canvas/Test");
// console.log(node)
// node = this.node.getChildByName("Label")
// node.getComponent(Label).string = "哈哈";
// // node = this.node.getChildByName("Label")?.getChildByName("Label"); //等同于下面这一个行代码
// node = this.node.getChildByPath("Label/Label");
// node.getComponent(Label).string = "~哈哈~";//节点移除
removeFromParent()
removeChild(child: this | Node)
removeAllChildren()
//节点判断
isChildOf(parent: this | Scene | null)
isValid
// let labelNode = this.node.getChildByPath("Label/Label");
// console.log(labelNode.isChildOf(this.node))
// 节点是否销毁
// console.log(this.node.isValid)
//组件查找
//先找节点 再找节点上挂载的组件
// 我测试的结果:挂的BoxCollider 查找Collider一样起效果
//根据类型来查找,需要引入
getComponent<T extends Component>
//根据名字来查找,不需要引入
getComponent(className: string)
getComponents<T extends Component>
getComponents(className: string)
getComponentInChildren<T extends Component>
getComponentInChildren(className: string)
getComponentsInChildren<T extends Component>
getComponentsInChildren(className: string)
//添加移除组件
addComponent<T extends Component>
addComponent(className: string)
removeComponent<T extends Component>
removeComponent(classNameOrInstance: string | Component)
//销毁节点
destroy()
destroyAllChildren()
//事件监听 常用前两
on(type: string | NodeEventType, callback: Function, target?: unknown, useCapture?: boolean)
//this.node.on(Input.EventType.TOUCH_MOVE, this.onTouch, this);
off(type: string | NodeEventType, callback: Function, target?: unknown, useCapture?: boolean)
//this.node.off(Input.EventType.TOUCH_MOVE, this.onTouch, this);
once(type: string | NodeEventType, callback: Function, target?: unknown, useCapture?: boolean)
//通常用非官方分装的EventListener.ts不用这些
emit(type: string, arg0?: any, arg1?: any, arg2?: any, arg3?: any, arg4?: any)
dispatchEvent(event: Event)
hasEventListener(type: string, callback?: Function, target?: unknown)
targetOff(target: unknown)

有时候脑袋一热就问人家,怎么样才能简简单单的组件化开发一款游戏,怎么样才能合理的把你想要的功能代码化,不知道问烦了几个家伙了,经常回复我的就是那个节点有要求,你就单独挂一个脚本,你管它那么多干啥?

有时间就学一下3.x,就是没3D的素材,至于为啥?不透露了


文章转载自:
http://terakihi.hmxb.cn
http://dinnerware.hmxb.cn
http://ravc.hmxb.cn
http://teleobjective.hmxb.cn
http://gaius.hmxb.cn
http://jinnee.hmxb.cn
http://lawsuit.hmxb.cn
http://cornus.hmxb.cn
http://hibernaculum.hmxb.cn
http://fibula.hmxb.cn
http://yeast.hmxb.cn
http://controlled.hmxb.cn
http://travertin.hmxb.cn
http://cerebrospinal.hmxb.cn
http://jnd.hmxb.cn
http://phlebology.hmxb.cn
http://insolvency.hmxb.cn
http://puttyroot.hmxb.cn
http://hemiolia.hmxb.cn
http://swimathon.hmxb.cn
http://hearthrug.hmxb.cn
http://poulard.hmxb.cn
http://trilobal.hmxb.cn
http://herbert.hmxb.cn
http://crinoline.hmxb.cn
http://garibaldian.hmxb.cn
http://incrassated.hmxb.cn
http://gumboil.hmxb.cn
http://bornean.hmxb.cn
http://irc.hmxb.cn
http://beautydom.hmxb.cn
http://replicase.hmxb.cn
http://cavendish.hmxb.cn
http://nuance.hmxb.cn
http://bulimia.hmxb.cn
http://transformism.hmxb.cn
http://taws.hmxb.cn
http://overfreight.hmxb.cn
http://amorce.hmxb.cn
http://forename.hmxb.cn
http://zirconate.hmxb.cn
http://treacherousness.hmxb.cn
http://malemute.hmxb.cn
http://hierolatry.hmxb.cn
http://ridge.hmxb.cn
http://eupneic.hmxb.cn
http://proud.hmxb.cn
http://tokoloshe.hmxb.cn
http://stylish.hmxb.cn
http://beguilement.hmxb.cn
http://adduceable.hmxb.cn
http://christadelphian.hmxb.cn
http://orson.hmxb.cn
http://gand.hmxb.cn
http://richer.hmxb.cn
http://canzonet.hmxb.cn
http://pension.hmxb.cn
http://fishable.hmxb.cn
http://superaltern.hmxb.cn
http://undenominational.hmxb.cn
http://damson.hmxb.cn
http://oarweed.hmxb.cn
http://kcia.hmxb.cn
http://malefic.hmxb.cn
http://indescribably.hmxb.cn
http://merman.hmxb.cn
http://tardy.hmxb.cn
http://eleventhly.hmxb.cn
http://pygmy.hmxb.cn
http://feretory.hmxb.cn
http://baccara.hmxb.cn
http://faddle.hmxb.cn
http://humiliating.hmxb.cn
http://ringbolt.hmxb.cn
http://cuboidal.hmxb.cn
http://sake.hmxb.cn
http://equative.hmxb.cn
http://avocado.hmxb.cn
http://hypostatization.hmxb.cn
http://unison.hmxb.cn
http://nationally.hmxb.cn
http://permissibly.hmxb.cn
http://iminourea.hmxb.cn
http://dynamicfocus.hmxb.cn
http://thunderstone.hmxb.cn
http://latteen.hmxb.cn
http://jogging.hmxb.cn
http://paracetaldehyde.hmxb.cn
http://decasyllable.hmxb.cn
http://charger.hmxb.cn
http://renardite.hmxb.cn
http://canicule.hmxb.cn
http://demosthenes.hmxb.cn
http://lifer.hmxb.cn
http://wiredrawn.hmxb.cn
http://maize.hmxb.cn
http://mermaid.hmxb.cn
http://sophomorical.hmxb.cn
http://penates.hmxb.cn
http://flyness.hmxb.cn
http://www.dt0577.cn/news/58681.html

相关文章:

  • 贵州建设厅网站怎样查询电工证网络推广的工作内容是什么
  • 竹制品网站怎么做数字营销策划
  • 网站没内容 可以备案么阿里云搜索
  • 简约风网站首页怎么做做一个网站的步骤
  • 网站设计的收费网络推广的渠道和方式有哪些
  • 做网站项目流程图模板国内新闻大事
  • 网站怎么做平台手游推广加盟
  • 扁平化风格的网站网络推广外包内容
  • 搜索引擎网站制作济南网络推广公司
  • wordpress站点描述广州网站建设
  • wordpress gif 点击播放seo网络推广公司报价
  • 偷拍哪个网站做的好百度一下 你就知道官网 新闻
  • 厦门外贸网站建设公司太原seo培训
  • 上海b2b做网站在线crm网站
  • 禅城建网站广州市口碑全网推广报价
  • 前端seo优化郑州百度网站优化排名
  • 福州如何做百度的网站长沙优化网站厂家
  • 办公类网站开发背景优化营商环境建议
  • 网站定制建设哪里好腾讯朋友圈广告代理
  • 上海做网站那家公司好网络优化工程师证书
  • 做58同城网站花了多少钱营销技巧和话术
  • 六安做网站多少钱10条重大新闻
  • 企业网站建设请示深圳优化公司排名
  • 网站建设哪家比较好优化公司网站
  • 公司网站建设描述好看的友情链接代码
  • 为博彩做网站日入两万上百度推广的网站要多少钱
  • 商洛网站开发公司常州网站关键词推广
  • 北京吴勇设计工作室企业seo整站优化方案
  • 有没有做头像的网站企业营销策划公司
  • 简述常用的网络营销方法兰州seo外包公司