Replace File/Directory with FileAccess/DirAccess
This commit is contained in:
@@ -72,7 +72,7 @@
|
||||
msgidsContextPlural.Add(new Godot.Collections.Array{"Only with context", "a friendly context", ""});
|
||||
[/csharp]
|
||||
[/codeblocks]
|
||||
[b]Note:[/b] If you override parsing logic for standard script types (GDScript, C#, etc.), it would be better to load the [code]path[/code] argument using [method ResourceLoader.load]. This is because built-in scripts are loaded as [Resource] type, not [File] type.
|
||||
[b]Note:[/b] If you override parsing logic for standard script types (GDScript, C#, etc.), it would be better to load the [code]path[/code] argument using [method ResourceLoader.load]. This is because built-in scripts are loaded as [Resource] type, not [FileAccess] type.
|
||||
For example:
|
||||
[codeblocks]
|
||||
[gdscript]
|
||||
|
||||
Reference in New Issue
Block a user