Help us understand the problem. What is going on with this article?

『Unity C# 個人用メモ』型とか演算子

よく使う型

int ・・・整数
/// -1,0,1 
flot・・・小数点以下を含む
/// fが必須 -1.5f,1.5f 
string・・・文字列
/// ""が必須 "こんにちは"
bool()・・・真偽判定
/// true(真) or false(偽)
Vector3(2)・・・座標とかベクトル
/// VectorのVは大文字なのを忘れないで!!
/// 使う時は Vector3 zahyou = new Vector3(〇,〇,〇)の様に宣言する
/// Vector2の場合なら new Vector2(〇,〇)の様な感じ
GameObject・・・ゲームオブジェクト
/// 用途によってGameObjectとgameObjectの二つ使い分けるので気を付ける
/// 宣言するときは```private GameObject ○○ ```など
/// 使用するときは```gameObject.GetComponent<〇〇>();```など
Transform・・・トランスフォーム。オブジェクトのインスペクタ(Unity画面の右側)の上の方にある座標とか回転入力するときに使うやつ
/// 宣言するときは```private Transform ○○;```など
///使用するときは```transform.position;```など

演算子

計算で使うやつ
四則演算省略
+= 追加(=が後ろ)
-= 差引(=が後ろ)
++ 1増やす
-- 1減らす
=  代入

if分で使うやつ
== 同じであるとき
!= 同じではない時
&& どちら[も]
|| どちら[か]
>  大なり
>= 大なりイコール(=が後ろ)
<  小なり
>= 小なりイコール(=が後ろ)

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした