Vector4.operator /

Unity · Версия 2020.3 LTS · Scripting · Vector4

Vector4.operator /

public static Vector4 operator /(Vector4 a, float d);

Описание

Делит вектор на число.

Делит каждый компонент a на число d.

using UnityEngine;

public class Example : MonoBehaviour
{
    void Start()
    {
        //Prints (0.5, 1.0, 1.5, 2.5)
        print(new Vector4(1, 2, 3, 5) / 2);
    }
}

Обновлено 17 ноября 2026 г.