当前位置:网站首页>Cocos学习日记1——节点
Cocos学习日记1——节点
2022-06-23 03:49:00 【herb.dr】
目录
一、图片节点
1.1 创建精灵节点

1.2 把图片放到节点上
把图片拖拽到右边


二、文本节点
2.1 节点作用
再屏幕上显示文字
2.2 添加节点

三、UI节点
3.1 作用
button、EditBox之类的,用于用户输入
3.2 创建

3.3 按钮节点结构
有三层结构,分别是 按钮控制 > 按钮背景 > 按钮中的文字

其中按钮背景可以放图片之类的
按钮控制可以控制按钮的状态

四、节点与组件
4.1 给节点添加组件



4.2 删除节点上的组件

4.3 组件和节点的关系
1、节点本身没有类型,真正起作用的是组件
图片节点 = Node + Sprite组件
2、一个节点可以挂在多个组件
不过渲染类组件只能挂一个,不能同时挂在 Sprite 和 Label
边栏推荐
- 语料库数据处理个案实例(词性赋码、词性还原)
- How does flutter achieve different zoom animation effects
- 浅析2022年物联网现状
- If you want to understand PostgreSQL, you must first brush the architecture
- X24cxx series EEPROM chip C language universal reading and writing program
- 基于FPGA的VGA协议实现
- 【二叉树】翻转等价二叉树
- svg d3. JS generate tree tree view
- Can MySQL be used in Linux
- Leetcode 1208. 尽可能使字符串相等(终于解决,晚安)
猜你喜欢

Flutter series: wrap in flutter

众昂矿业:新能源新材料产业链对萤石需求大增

语料库数据处理个案实例(分词和分句、词频统计、排序)

支持在 Kubernetes 运行,添加多种连接器,SeaTunnel 2.1.2 版本正式发布!

X24cxx series EEPROM chip C language universal reading and writing program

在线文本过滤小于指定长度工具

How to use MySQL index well

Twitter cooperates with Shopify to introduce merchant products into twitter shopping

The spring recruitment in 2022 begins, and a collection of interview questions will help you

Analysis on the current situation of the Internet of things in 2022
随机推荐
How to ensure application security
What are the characteristics of SRM supplier management system developed by manufacturing enterprises
PTA:6-71 时钟模拟
仿360桌面悬浮球插件
Sequence table lookup
The spring recruitment in 2022 begins, and a collection of interview questions will help you
深度学习 TensorFlow入门
8 key indicators to measure technology debt in 2022
Please use the NLTK Downloader to obtain the resource
LabVIEW在同一表中同时显示十六进制字符和普通字符
顺序表查找
[multimode] unimo
[ACNOI2022]不猜不行
12 excellent practices of wireless network security
在线JSON转CSharp(C#)Class工具
【二叉树进阶】AVLTree - 平衡二叉搜索树
[从零开始学习FPGA编程-40]:进阶篇 - 设计-竞争与风险Risk或冒险
Inscription of lougu brush
Bug STM32 interrupt (everyone knows)
Code refactoring Guide