Tim Mowrer
5 年前
当前提交
7f8be47a
共有 22 个文件被更改,包括 22 次插入 和 425 次删除
-
14Assets/Scenes/ARCollaborationData/ARCollaborationDataExample.unity
-
119Assets/Scenes/ARWorldMap.unity
-
15Assets/Scenes/CameraImage.unity
-
15Assets/Scenes/Check Support.unity
-
15Assets/Scenes/EnvironmentProbes.unity
-
15Assets/Scenes/FaceTracking/ARCoreFaceRegions.unity
-
15Assets/Scenes/FaceTracking/ARKitFaceBlendShapes.unity
-
15Assets/Scenes/FaceTracking/FaceMesh.unity
-
15Assets/Scenes/FaceTracking/FacePose.unity
-
15Assets/Scenes/FaceTracking/RearCameraWithFrontCameraFaceMesh.unity
-
14Assets/Scenes/HumanSegmentation/HumanBodyTracking2D.unity
-
14Assets/Scenes/HumanSegmentation/HumanBodyTracking3D.unity
-
14Assets/Scenes/HumanSegmentation/HumanSegmentationImages.unity
-
15Assets/Scenes/LightEstimation.unity
-
15Assets/Scenes/Plane Detection/FeatheredPlanes.unity
-
15Assets/Scenes/Plane Detection/TogglePlaneDetection.unity
-
15Assets/Scenes/ReferencePoints.unity
-
15Assets/Scenes/Scale.unity
-
15Assets/Scenes/SimpleAR.unity
-
15Assets/Scenes/UX/SampleUXScene.unity
-
36Assets/Scripts/SetTargetFramerate.cs
-
11Assets/Scripts/SetTargetFramerate.cs.meta
|
|||
using System.Collections; |
|||
using System.Collections.Generic; |
|||
using UnityEngine; |
|||
|
|||
/// <summary>
|
|||
/// Simple MonoBehaviour to set the Application's targetFrameRate
|
|||
/// </summary>
|
|||
public class SetTargetFramerate : MonoBehaviour |
|||
{ |
|||
[SerializeField] |
|||
[Tooltip("Sets the application's target frame rate.")] |
|||
int m_TargetFrameRate = 60; |
|||
|
|||
/// <summary>
|
|||
/// Get or set the application's target frame rate.
|
|||
/// </summary>
|
|||
public int targetFrameRate |
|||
{ |
|||
get { return m_TargetFrameRate; } |
|||
set |
|||
{ |
|||
m_TargetFrameRate = value; |
|||
SetFrameRate(); |
|||
} |
|||
} |
|||
|
|||
void SetFrameRate() |
|||
{ |
|||
Application.targetFrameRate = targetFrameRate; |
|||
} |
|||
|
|||
void Start() |
|||
{ |
|||
SetFrameRate(); |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 1eb9777efa8174381b01d319232f7df5 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
撰写
预览
正在加载...
取消
保存
Reference in new issue