VRTK-3.1.0
VRTK3.1.0版本 ,配合steam vr plugin插件一起使用,结合U3D开发HTC游戏
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-06-27 08:56 VRTK-3.1.0
文件 181 2017-02-25 01:28 VRTK-3.1.0.editorconfig
文件 105 2017-02-25 01:28 VRTK-3.1.0.gitattributes
文件 909 2017-02-25 01:28 VRTK-3.1.0.gitignore
文件 192 2018-05-04 14:07 VRTK-3.1.0Assets.meta
目录 0 2018-06-27 08:56 VRTK-3.1.0Assets
文件 191 2017-02-25 01:28 VRTK-3.1.0AssetsVRTK.meta
目录 0 2018-06-27 08:56 VRTK-3.1.0AssetsVRTK
文件 571315 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKDOCUMENTATION.pdf
文件 174 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKDOCUMENTATION.pdf.meta
文件 191 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKEditor.meta
目录 0 2018-06-27 08:56 VRTK-3.1.0AssetsVRTKEditor
文件 7665 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKEditorVRTK_AdaptiveQualityEditor.cs
文件 263 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKEditorVRTK_AdaptiveQualityEditor.cs.meta
文件 1378 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKEditorVRTK_EditorUtilities.cs
文件 262 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKEditorVRTK_EditorUtilities.cs.meta
文件 7081 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKEditorVRTK_objectSetup.cs
文件 263 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKEditorVRTK_objectSetup.cs.meta
文件 1380 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKEditorVRTK_PolicyListEditor.cs
文件 262 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKEditorVRTK_PolicyListEditor.cs.meta
文件 12197 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKEditorVRTK_SDKManagerEditor.cs
文件 262 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKEditorVRTK_SDKManagerEditor.cs.meta
文件 192 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKExamples.meta
目录 0 2018-06-27 08:56 VRTK-3.1.0AssetsVRTKExamples
文件 19962 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKExamples 01_CameraRig_VR_PlayArea.unity
文件 175 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKExamples 01_CameraRig_VR_PlayArea.unity.meta
文件 32022 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKExamples 02_Controller_Events.unity
文件 175 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKExamples 02_Controller_Events.unity.meta
文件 51737 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKExamples 03_Controller_SimplePointer.unity
文件 175 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKExamples 03_Controller_SimplePointer.unity.meta
文件 53349 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKExamples 04_CameraRig_BasicTeleport.unity
............此处省略957个文件信息
#if (UNITY_5_4_OR_NEWER)
namespace VRTK
{
using System;
using System.Globalization;
using UnityEditor;
using UnityEngine;
[CustomEditor(typeof(VRTK_AdaptiveQuality))]
public class VRTK_AdaptiveQualityEditor : Editor
{
private const string DontDisableHelpBoxText =
“This script supports command line arguments to configure the adaptive quality scaling.“
+ “ If this script is disabled it won‘t respond to the arguments.
“
+ “Leave this script enabled and use the ‘scaleRenderViewport‘ property if you want to disable“
+ “ the adaptive quality scaling for now but want to leave it possible for your built“
+ “ binary to respond to the arguments.“;
private const string MaximumRenderScaleTooBigHelpBoxText =
“The maximum render scale is too big. It‘s constrained by the maximum render target dimension below.“;
private const string ScaleRenderTargetResolutionCostlyHelpBoxText =
“Changing the render target resolution is very costly and should be reduced to a minimum therefore“
+ “ this setting is turned off by default. Make sure you understand the performance implication this“
+ “ setting has when leaving it enabled.“;
private const string NoRenderScaleLevelsYetHelpBoxText =
“Overriding render viewport scale levels is disabled because there are no render viewport scale levels calculated yet.“
+ “ They will be calculated at runtime.“;
public override void OnInspectorGUI()
{
serializedobject.Update();
var adaptiveQuality = (VRTK_AdaptiveQuality)target;
EditorGUILayout.HelpBox(DontDisableHelpBoxText adaptiveQuality.enabled ? MessageType.Warning : MessageType.Error);
EditorGUILayout.Space();
EditorGUILayout.PropertyField(serializedobject.FindProperty(“drawDebugVisualization“));
EditorGUILayout.PropertyField(serializedobject.FindProperty(“allowKeyboardShortcuts“));
EditorGUILayout.PropertyField(serializedobject.FindProperty(“allowCommandLineArguments“));
EditorGUILayout.PropertyField(serializedobject.FindProperty(“msaaLevel“));
EditorGUILayout.Space();
serializedobject.FindProperty(“scaleRenderViewport“).boolValue =
EditorGUILayout.BeginToggleGroup(VRTK_EditorUtilities.BuildGUIContent(“scaleRenderViewport“)
adaptiveQuality.scaleRenderViewport);
{
float minimumRenderScale = adaptiveQuality.minimumRenderScale;
float maximumRenderScale = adaptiveQuality.maximumRenderScale;
EditorGUILayout.BeginHorizontal();
{
var fieldInfo = adaptiveQuality.GetType().GetField(“minimumRenderScale“);
var rangeAttribute = (RangeAttribute)Attribute.GetCust
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-06-27 08:56 VRTK-3.1.0
文件 181 2017-02-25 01:28 VRTK-3.1.0.editorconfig
文件 105 2017-02-25 01:28 VRTK-3.1.0.gitattributes
文件 909 2017-02-25 01:28 VRTK-3.1.0.gitignore
文件 192 2018-05-04 14:07 VRTK-3.1.0Assets.me
目录 0 2018-06-27 08:56 VRTK-3.1.0Assets
文件 191 2017-02-25 01:28 VRTK-3.1.0AssetsVRTK.me
目录 0 2018-06-27 08:56 VRTK-3.1.0AssetsVRTK
文件 571315 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKDOCUMENTATION.pdf
文件 174 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKDOCUMENTATION.pdf.me
文件 191 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKEditor.me
目录 0 2018-06-27 08:56 VRTK-3.1.0AssetsVRTKEditor
文件 7665 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKEditorVRTK_AdaptiveQualityEditor.cs
文件 263 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKEditorVRTK_AdaptiveQualityEditor.cs.me
文件 1378 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKEditorVRTK_EditorUtilities.cs
文件 262 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKEditorVRTK_EditorUtilities.cs.me
文件 7081 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKEditorVRTK_ob
文件 263 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKEditorVRTK_ob
文件 1380 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKEditorVRTK_PolicyListEditor.cs
文件 262 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKEditorVRTK_PolicyListEditor.cs.me
文件 12197 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKEditorVRTK_SDKManagerEditor.cs
文件 262 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKEditorVRTK_SDKManagerEditor.cs.me
文件 192 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKExamples.me
目录 0 2018-06-27 08:56 VRTK-3.1.0AssetsVRTKExamples
文件 19962 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKExamples 01_CameraRig_VR_PlayArea.unity
文件 175 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKExamples 01_CameraRig_VR_PlayArea.unity.me
文件 32022 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKExamples 02_Controller_Events.unity
文件 175 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKExamples 02_Controller_Events.unity.me
文件 51737 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKExamples 03_Controller_SimplePointer.unity
文件 175 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKExamples 03_Controller_SimplePointer.unity.me
文件 53349 2017-02-25 01:28 VRTK-3.1.0AssetsVRTKExamples 04_CameraRig_BasicTeleport.unity
............此处省略957个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)