ソースを参照

add a datablock namespace hook for onInspect

AzaezelX 8 ヶ月 前
コミット
818d76d481

+ 7 - 0
Templates/BaseGame/game/tools/base/utils/inspector.ed.tscript

@@ -287,3 +287,10 @@ function EditorInspectorBase::getFullFilePath( %field )
    else
       return makeFullPath( %fileName, getMainDotCsDir() );
 }
+
+function GameBase::onInspect(%this, %inspector)
+{
+    Parent::onInspect(%this, %inspector);
+    if (%this.getDatablock().isMethod("onInspect"))
+        %this.getDatablock().onInspect(%this, %inspector);
+}