mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
Update some C# examples for 4.0 (#6693)
* Update some C# examples - Rename members that have been renamed in Godot's C# API for 4.0. - Change `delta` parameter type to `double`. - Ensure parameters match base declaration. - Other minor code fixes. --------- Co-authored-by: Paul Joannon <437025+paulloz@users.noreply.github.com>
This commit is contained in:
@@ -143,13 +143,13 @@ specifically add :ref:`class_EditorProperty`-based controls.
|
||||
|
||||
public partial class MyInspectorPlugin : EditorInspectorPlugin
|
||||
{
|
||||
public override bool CanHandle(Object @object)
|
||||
public override bool _CanHandle(Variant @object)
|
||||
{
|
||||
// We support all objects in this example.
|
||||
return true;
|
||||
}
|
||||
|
||||
public override bool ParseProperty(Object @object, int type, string path, int hint, string hintText, int usage)
|
||||
public override bool _ParseProperty(GodotObject @object, int type, string name, int hintType, string hintString, int usageFlags, bool wide)
|
||||
{
|
||||
// We handle properties of type integer.
|
||||
if (type == (int)Variant.Type.Int)
|
||||
|
||||
Reference in New Issue
Block a user