【发布时间】:2019-10-29 20:19:34
【问题描述】:
在尝试更改游戏对象的位置及其速度时,我需要一些帮助。我知道翻译游戏对象,但我不知道如何提高它的翻译速度。顺便说一句,我正在使用统一游戏引擎。
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class lightning : MonoBehaviour
{
//This is lightning
private GameObject name;
// Start is called before the first frame update
void Start()
{
name=GameObject.Find("car");
}
// Update is called once per frame
void Update()
{
if (Input.Keydone("r")
door.transform.Translate(-Vector3.right * Time.deltaTime);
}
}
【问题讨论】:
-
场景灯与设备的屏幕亮度完全不同。
-
也就是说,你真的是指屏幕亮度还是场景中的灯光? - 你的代码和描述是相反的
-
我会建议使用后处理堆栈来实现这样的事情。 Bloom和Auto Exposure的混合应该可以解决问题。您无法调高设备亮度。
-
@BrandonMiller 在 2019.2 测试版中,有一个适用于 iOS 和 android 设备的可写
Screen.brightness字段: -
我正在使用游戏引擎。我正在尝试改变游戏引擎的亮度。