当前位置:网站首页>[unity shader] substitution of bool type in the property definition
[unity shader] substitution of bool type in the property definition
2022-07-01 09:34:00 【True ghost 123】
stay shader Of Properties Attribute definition , Can't use bool Type variable , The following wording will report an error .
_IsTrue("Istrue", bool) = true
have access to float type +toggle Label instead of
[Toggle(_True)]_IsTrue("Istrue", float) = 1
increase Toggle After label , stay Inspector The palette , This variable is a check box .
If checked, it will be the default value , Unchecking is not the default .
Where judgment is needed , Judge _IsTrue Whether it is the default value .
边栏推荐
- 【pytorch】nn. AdaptiveMaxPool2d
- Closure implementation iterator effect
- Mysql8.0 learning record 17 -create table
- Network counting 01 physical layer
- Daily practice of C language - day 80: currency change
- 【电赛训练】红外光通信装置 2013年电赛真题
- 【leetcode】287. Find duplicates
- Get the list of a column in phpexcel get the letters of a column
- PR training notes
- Construction of esp8266 FreeRTOS development environment
猜你喜欢
Principles of Microcomputer - internal and external structure of microprocessor
2.3 【pytorch】数据预处理 torchvision.datasets.ImageFolder
Problems caused by delete and delete[]
Simple load balancing with Nacos
2.3 [kaggle dataset - dog feed example] data preprocessing, rewriting dataset, dataloader reading data
The market is relatively weak recently
【电赛训练】红外光通信装置 2013年电赛真题
Clickhouse: Test on query speed of A-share minute data [Part 2]
Spark's action operator
dotnet 控制台 使用 Microsoft.Maui.Graphics 配合 Skia 进行绘图入门
随机推荐
【ESP 保姆级教程 预告】疯狂Node.js服务器篇 ——案例:ESP8266 + DS18B20温度传感器 +NodeJs本地服务+ MySQL数据库
Youqitong PE toolbox [vip] v3.7.2022.0106 official January 22 Edition
Niuke monthly race 22- collect pieces of paper
SQL learning notes (04) - data update and query operations
node. How to implement the SQL statement after JS connects to the database?
Get the list of a column in phpexcel get the letters of a column
Construction of esp8266 FreeRTOS development environment
[pytorch learning] torch device
[video game training] real topic of 2013 video game of infrared optical communication device
[ESP nanny level tutorial] crazy completion chapter - Case: gy906 infrared temperature measurement access card swiping system based on the Internet of things
JS原型链
JS scope chain and closure
SQL learning notes (01) - basic knowledge of database
2.2 【pytorch】torchvision. transforms
dsPIC30F6014a LCD 方块显示
SQL学习笔记(02)——数据库表操作
laravel postman 提交表单出现419错误。2020年7月6日记。
2022.02.15_ Daily question leetcode six hundred and ninety
121. thread scheduling: join() method and yield() method
Principles of Microcomputer - internal and external structure of microprocessor