update CCK to 3.10, fixing unity 2021 crash :)
This commit is contained in:
parent
48a978fa2a
commit
d11e0fb3a9
492 changed files with 2165204 additions and 437687 deletions
29
Assets/ABI.CCK/Scripts/Editor/ScriptedImporter/LuaScriptImporterGUI.cs
Executable file
29
Assets/ABI.CCK/Scripts/Editor/ScriptedImporter/LuaScriptImporterGUI.cs
Executable file
|
@ -0,0 +1,29 @@
|
|||
using ABI.CCK.Components.ScriptableObjects;
|
||||
using UnityEditor;
|
||||
using UnityEditor.AssetImporters;
|
||||
using UnityEngine;
|
||||
|
||||
namespace ABI.CCK.Scripts.Editor.ScriptedImporter
|
||||
{
|
||||
[CustomEditor(typeof(LuaScriptImporter))]
|
||||
public class LuaScriptImporterGUI: ScriptedImporterEditor
|
||||
{
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
base.ApplyRevertGUI();
|
||||
|
||||
CVRLuaScript asset = assetTarget as CVRLuaScript;
|
||||
if (asset is null)
|
||||
return;
|
||||
|
||||
// helpbox explaining lua
|
||||
EditorGUILayout.HelpBox(
|
||||
"Lua is a language supported by ChilloutVR that you can use to easily add scripted behaviours to objects in props, avatars, and worlds.",
|
||||
MessageType.Info);
|
||||
|
||||
// display button for documentation
|
||||
if (GUILayout.Button("Open Documentation"))
|
||||
Application.OpenURL("example.com");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue