-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'LuaParamsPropertyDrawer'
- Loading branch information
Showing
30 changed files
with
569 additions
and
108 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+944 Bytes
(110%)
Assets/Game/Prefabs/Environment/backgroundAnimation.prefab
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/** | ||
* The custom export lua type class, this is editor class. | ||
* | ||
* @filename CustomExportTypeToLua.cs | ||
* @filename LgCustomExportTypeToLua.cs | ||
* @copyright Copyright (c) 2015 Yaukey/yaukeywang/WangYaoqi ([email protected]) all rights reserved. | ||
* @license The MIT License (MIT) | ||
* @author Yaukey | ||
|
@@ -14,7 +14,7 @@ | |
using SLua; | ||
|
||
// The custom export lua type class. | ||
public class CustomExportTypeToLua : ICustomExportPost | ||
public class LgCustomExportTypeToLua : ICustomExportPost | ||
{ | ||
/** | ||
* Get custom assembly to generate extension method. | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/** | ||
* The custom editor of the YwLuaMonoBehaviourEditor class. | ||
* | ||
* @filename YwLuaMonoBehaviourEditor.cs | ||
* @copyright Copyright (c) 2015 Yaukey/yaukeywang/WangYaoqi ([email protected]) all rights reserved. | ||
* @license The MIT License (MIT) | ||
* @author Yaukey | ||
* @date 2016-03-25 | ||
*/ | ||
|
||
using UnityEngine; | ||
using UnityEditor; | ||
using System.Collections; | ||
using System; | ||
|
||
// The custom editor of the YwLuaMonoBehaviourEditor class. | ||
[CustomEditor(typeof(YwLuaMonoBehaviour), true)] | ||
public class YwLuaMonoBehaviourEditor : Editor | ||
{ | ||
// The lua params property. | ||
protected SerializedProperty m_cLuaParams = null; | ||
|
||
/** | ||
* This function is called when the object is loaded. | ||
* | ||
* @param void. | ||
* @return void. | ||
*/ | ||
protected virtual void OnEnable() | ||
{ | ||
m_cLuaParams = serializedObject.FindProperty("m_luaParameters"); | ||
} | ||
|
||
/** | ||
* Implement this function to make a custom inspector. | ||
* Inside this function you can add your own custom GUI for the inspector of a specific object class. | ||
* | ||
* @param void. | ||
* @return void. | ||
*/ | ||
public override void OnInspectorGUI() | ||
{ | ||
serializedObject.Update(); | ||
EditorGUILayout.PropertyField(m_cLuaParams); | ||
serializedObject.ApplyModifiedProperties(); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
Assets/Game/Scripts/Editor/YwLuaMonoBehaviourEditor.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.