Skip to content

Commit

Permalink
V3.3.0 when create typescript asset , predefined some variales (cocos…
Browse files Browse the repository at this point in the history
…#9024)

* add ts template Predefined variables

* change variable name
  • Loading branch information
arsen2010 committed Jul 22, 2021
1 parent 064d790 commit 56377ba
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions editor/assets/default_file_content/ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@
import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;

/**
* Predefined variables
* Name = <%Name%>
* DateTime = <%DateTime%>
* Author = <%Author%>
* FileBasename = <%FileBasename%>
* FileBasenameNoExtension = <%FileBasenameNoExtension%>
* URL = <%URL%>
*
*/

@ccclass('<%Name%>')
export class <%Name%> extends Component {
// [1]
Expand Down

0 comments on commit 56377ba

Please sign in to comment.