当前位置:网站首页>Unity -- Enumeration class
Unity -- Enumeration class
2022-04-21 08:00:00 【Xia Yanhuang】
tring Convert to Enum Enumeration type
enum we
{
a sunny day ,
overcast ,
The wind ,
cloudy
}
public class cs : MonoBehaviour
{
void Start()
{
we dsa;
dsa = (we)Enum.Parse(typeof(we), " a sunny day ");
Debug.Log(dsa);
}
}
obtain Enum Internal corresponding index
we dsa = we. cloudy ;
Debug.Log((int)dsa);
版权声明
本文为[Xia Yanhuang]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210657104450.html
边栏推荐
- Unity性能优化之UI
- Usage of go language log Uber go / zap / lumberjack
- C WebService interface obtains JSON parameters through request
- PHP base64 encryption
- Record the problems and solutions encountered in using fastjson message converter
- nodejs链接redis
- [Ethernet switching security] - explanation of port isolation operation principle and two-layer isolation and three-layer communication example configuration
- . net core throws an error and writes it Txt file
- Technical background and practical role of "industrial digitization"
- Usage of go ini
猜你喜欢
![[image fusion] image fusion based on Laplace pyramid + wavelet transform, including Matlab source code](/img/05/ea5838603be3b09066a80a6b22f41e.png)
[image fusion] image fusion based on Laplace pyramid + wavelet transform, including Matlab source code

Leetcode topic -- 120 Minimum length sum of triangles, simple DP

2022G3锅炉水处理考试题库及答案

Flutter environment construction and other foundations

从零开始学习C语言日记——DAY27扫雷

类与对象的详解(构造方法的详解)

如何修改 Rancher Server 的 IP 地址

Technical background and practical role of "industrial digitization"

在Win10系统中用mimikatz抓取明文密码

Question bank and answers of Electrical Engineering (elementary) examination in 2022
随机推荐
在Win10系统中用mimikatz抓取明文密码
matlab画散点图
Execute rule after MySQL where condition
数学实验——函数绘图实验
go语言记录日志uber-go/zap/lumberjack的用法
MongoDB 实验——数据备份和恢复和数据库优化
CouchDB vertical ultra vires
HCIP221题库
Self made webserver from scratch (XV) -- the log base part is completed, and the practical widget double-buffering optimizes the asynchronous write performance
J'ai accidentellement trouvé la base de données d'une soeur Tsinghua!
Record the problems and solutions encountered in using fastjson message converter
Nail custom robot docking source code
Introduction to QT 5.12 actual combat
Actual combat of cloud native kubesphere multi tenant system
Package and download files
The interface is not restored after Fiddler changes the font
[image fusion] image fusion based on Laplace pyramid + wavelet transform, including Matlab source code
Bluetooth open source protocol stack btstack summary
PHP removes commas at the beginning or end of strings
查询结果处理