Ejemplo n.º 1
0
    void OnEnable()
    {
        if (DeviceIndex >= 0)
        {
            var DeviceNames = PopCameraDevice.EnumCameraDevices();
            DeviceName = DeviceNames[DeviceIndex].Serial;
        }

        Device = new PopCameraDevice.Device(DeviceName, Format);
    }
Ejemplo n.º 2
0
    void OnEnable()
    {
        var DeviceNames = PopCameraDevice.EnumCameraDevices();

        foreach (var Device in DeviceNames)
        {
            var FormatString = string.Join(",", Device.Formats);
            Debug.Log(Device.Serial + " formats: " + FormatString);
        }
    }