Giter Site home page Giter Site logo

godotpathgenerator's Introduction

GodotPathGenerator

A godot plugin which can generate node path and scene resource path, so that you don't need to write literal string anymore.(just for C#)

Write by C# but easy to transplant to gdscript.

Example:

example

example2

use IDE autocomplate than string.

Tips:

  • the class will be generated when saving scene
  • only a scene with C# script can be generated path class, the class is inner GPG naming xxxPath.
  • the default generate dir res://script/gpg which defined in GodotPathGenerator class, you can modify the source to change it.

Todo:

  • godot original signal name define(I really don't want to use literal string)

一个自动生成节点路径和场景资源路径的 godot 插件,这样就不用写字符串字面量了,仅供C#使用

(没有使用C#特有方法,可以很方便得移植到gdscript)

例子:

example

example2

这样就可以使用IDE自动补全,而不是手写字符串

提示:

  • 场景保存时会自动生成定义
  • 只有有C#脚本的节点才会被生成,生成的类名是 xxxPath
  • 默认生成的文件路径是 res://script/gpg, 可以在插件类 GodotPathGenerator 中修改

未来要做的:

  • godot自带信号的定义(可能和插件名没啥关系,但我就是想加进来)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.