当前位置:网站首页>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
边栏推荐
猜你喜欢

在线JSON转CSharp(C#)Class工具

Pytoch --- use pytoch's pre training model to realize four weather classification problems

JVM调优简要思想及简单案例-为什么需要JVM调优?

x64dbg 基本使用技巧
![[deep learning] deep learning reasoning framework tensorrt MNN openvino onnxruntime](/img/a9/11bc00a91b79358f28ada2d4c99f32.png)
[deep learning] deep learning reasoning framework tensorrt MNN openvino onnxruntime

给你的AppImage创建桌面快捷方式

Photoshop PS viewing pixel coordinates, pixel colors, pixel HSB colors

flutter系列之:flutter中的Wrap

What is metadata

京东云分布式数据库StarDB荣获中国信通院 “稳定性实践先锋”
随机推荐
Bug STM32 interrupt (everyone knows)
Leetcode 1208. Try to make the strings equal as much as possible (finally solved, good night)
【二叉树】二叉树的完全性检验
深度学习 简介
How to use MySQL index well
P1347 sorting (TOPO)
【二叉树进阶】AVLTree - 平衡二叉搜索树
自动化测试常见的面试题
It supports running in kubernetes, adds multiple connectors, and seatunnel version 2.1.2 is officially released!
leetcode 91. Decode ways (medium)
Section 2: spingboot unit test
Photoshop PS viewing pixel coordinates, pixel colors, pixel HSB colors
Particle animation background login page particles js
Create a desktop shortcut to your appimage
顺序表查找
Ms-fsrvp forced abuse of POC
flutter系列之:flutter中的Wrap
Monitoring artifact ZABBIX, from deployment to application, goes deep layer by layer
svg d3. JS generate tree tree view
离线数仓建模中常见的概念-术语