Kaynağa Gözat

Update LightControl: add toString method

Wyatt Gillette 3 ay önce
ebeveyn
işleme
8911d07eb1

+ 12 - 0
jme3-core/src/main/java/com/jme3/scene/control/LightControl.java

@@ -319,4 +319,16 @@ public class LightControl extends AbstractControl {
         oc.write(axisRotation, "axisRotation", Axis.Z);
         oc.write(axisDirection, "axisDirection", Direction.Positive);
     }
+
+    @Override
+    public String toString() {
+        return getClass().getSimpleName() +
+                "[light=" + light +
+                ", controlDir=" + controlDir +
+                ", axisRotation=" + axisRotation +
+                ", axisDirection=" + axisDirection +
+                ", enabled=" + enabled +
+                ", spatial=" + spatial +
+                "]";
+    }
 }