Tim Mowrer
6 年前
当前提交
31744ec4
共有 24 个文件被更改,包括 33 次插入 和 455 次删除
-
15Assets/Scenes/ARCollaborationData/ARCollaborationDataExample.unity
-
118Assets/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
-
18Assets/Scenes/HumanSegmentation/HumanBodyTracking2D.unity
-
18Assets/Scenes/HumanSegmentation/HumanBodyTracking3D.unity
-
18Assets/Scenes/HumanSegmentation/HumanSegmentationImages.unity
-
15Assets/Scenes/ImageTracking/ImageTracking.unity
-
15Assets/Scenes/LightEstimation.unity
-
15Assets/Scenes/Object Tracking/ObjectTracking.unity
-
15Assets/Scenes/Plane Detection/FeatheredPlanes.unity
-
15Assets/Scenes/Plane Detection/TogglePlaneDetection.unity
-
15Assets/Scenes/ReferencePoints.unity
-
15Assets/Scenes/Scale.unity
-
14Assets/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