stringify.gd 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. func test():
  2. print(true, false)
  3. print(-1, 0, 1)
  4. print(-1.25, 0.25, 1.25)
  5. print("hello world")
  6. print(Vector2(0.25, 0.25))
  7. print(Vector2i(0, 0))
  8. print(Rect2(0.25, 0.25, 0.5, 0.5))
  9. print(Rect2i(0, 0, 0, 0))
  10. print(Vector3(0.25, 0.25, 0.25))
  11. print(Vector3i(0, 0, 0))
  12. print(Transform2D.IDENTITY)
  13. print(Plane(1, 2, 3, 4))
  14. print(Quaternion(1, 2, 3, 4))
  15. print(AABB(Vector3.ZERO, Vector3.ONE))
  16. print(Basis.from_euler(Vector3(0, 0, 0)))
  17. print(Transform3D.IDENTITY)
  18. print(Color(1, 2, 3, 4))
  19. print(StringName("hello"))
  20. print(NodePath("hello/world"))
  21. var node := Node.new()
  22. print(RID(node))
  23. print(node.get_name)
  24. print(node.property_list_changed)
  25. node.free()
  26. print({"hello":123})
  27. print(["hello", 123])
  28. print(PackedByteArray([-1, 0, 1]))
  29. print(PackedInt32Array([-1, 0, 1]))
  30. print(PackedInt64Array([-1, 0, 1]))
  31. print(PackedFloat32Array([-1, 0, 1]))
  32. print(PackedFloat64Array([-1, 0, 1]))
  33. print(PackedStringArray(["hello", "world"]))
  34. print(PackedVector2Array([Vector2.ONE, Vector2.ZERO]))
  35. print(PackedVector3Array([Vector3.ONE, Vector3.ZERO]))
  36. print(PackedColorArray([Color.RED, Color.BLUE, Color.GREEN]))