일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- FIND
- boost
- dataframe
- autovacuum
- ngui
- conda
- null
- SSH
- SVN
- C++
- sqlite
- 배열
- if
- ubuntu
- pandas
- List
- Unity
- Eclipse
- with
- awk
- DROP
- 쉘
- c++11
- pi
- sql
- python
- expect
- mysql
- postgresql
- Shader
Archives
- Today
- Total
その先にあるもの…
LayerMask 본문
// Turn on the bit using an OR operation:
private void Show( ) {camera . cullingMask |= 1 <<LayerMask . NameToLayer( "SomeLayer");}
// Turn off the
bit using an AND operation with the complement of the shiftedint :private void Hide( ) {camera . cullingMask &= ~( 1 <<LayerMask . NameToLayer( "SomeLayer"));}
// Toggle the bit using
a XOR operation:private void Toggle( ) {camera . cullingMask ^= 1 <<LayerMask . NameToLayer( "SomeLayer");}
출처
'프로그래밍 > Unity' 카테고리의 다른 글
CombineMeshes (0) | 2015.10.07 |
---|---|
LightMap 스크립트에서 불러오기 (0) | 2015.09.14 |
Surface Shader (0) | 2015.09.02 |
shuriken rotation (0) | 2015.09.01 |
Caemra::CopyFrom (0) | 2015.08.19 |
Comments