Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
gdevelop5:interface:project-manager:resources [2021/04/19 16:46]
midhil457
gdevelop5:interface:project-manager:resources [2021/11/22 23:06] (current)
Line 1: Line 1:
-====== Resources ======+#Resources
  
- GDevelop allows you to edit and control resources that your project uses. 
  
-<note important>Removing resources from the manager won't delete it from the project folderButthey won't be used by your project. If you want to remove unused files from the project foldersave the project as "Save as" from the toolbar</note>+You can find the resource manager at **Project manager** → **Game settings** → **Resources**. 
 + 
 +When you click on **Resources**a window is opened where you can set edit and control the resourcesall the resources in this new windows will be exported during the export of the game.
  
-You can find the resource manager at Start Menu → Open project manager → Game settings → Resources. 
  
 {{:gdevelop5:interface:project-manager:resources1.png?nolink |}} {{:gdevelop5:interface:project-manager:resources1.png?nolink |}}
  
-===== Interface =====+##Interface 
 + 
 +<note tip>The changes you might have made (Ex: added a new object to the project, added new animations, etc... ) might not instantly apply to the resources tab if you have it opened. Reopen it to apply the changes</note>
  
-When you open //Resources//, you will be presented with the an interface similar to this interface+When the **Resources** window appears, you will see an interface similar to the one given below:
  
 {{ :gdevelop5:interface:project-manager:resoucres2.png?nolink |}} {{ :gdevelop5:interface:project-manager:resoucres2.png?nolink |}}
  
-There you can see the properties panel (On the left). And the list of resources that the project uses (On the Right).+There you can see the **properties panel** (On the left). And the list of resources that the project uses (On the Right).
  
-You can see some buttons on the top-right,+The toolbar is updated with some button, on the top-right.
  
 {{ :gdevelop5:interface:project-manager:resoucres10.png?nolink |}} {{ :gdevelop5:interface:project-manager:resoucres10.png?nolink |}}
Line 23: Line 25:
 - You can open the project folder with the button on the left. The .json file, assets (images, fonts, audio files) are located in the project folder.  - You can open the project folder with the button on the left. The .json file, assets (images, fonts, audio files) are located in the project folder. 
  
-<note tip>Normally the project folders are stored under **Documents/GDevelop projects/<Name of project>**</note>+- Toggle the **properties panel** visible on the left part of the screen.
  
-Toggle the properties panel visible on the left part of the screen.+Remove the selected resource by clicking the button on the right.
  
-- Remove the selected resource by clicking the button on the right+##Properties
  
-==== Tools ==== 
  
-Gdevelop allows you to edit and control the resources and how they are rendered in the project. +Gdevelop allows you to edit and control the resources and how they are rendered in the project in the left part of the screen.
  
-=== Smoothing===+###Editing the file path
  
-You can sometimes see blurry images, especially when they are scaled. You can disable/enable image smoothing by toggling "{{:gdevelop5:interface:project-manager:resources8.png?nolink |}}" (Great for pixel art games)+ 
 +File path is the location where the resource is located in your computer, the file path is relative to the project folder. 
 + 
 +Click **edit** and a file chooser will open, letting you change the file path and choose another file. After you have chosen the file, that file will be used instead of the old one. 
 + 
 +{{:gdevelop5:interface:project-manager:resources5.png?nolink|}} 
 + 
 +<note>A file path can be an URL, this URL will be requested and loaded at the startup of the game.</note> 
 + 
 +###Smoothing 
 + 
 + 
 +You can sometimes see blurry images, especially when they are scaled. You can disable/enable image smoothing by toggling  the option **Smooth the image** (Great for pixel art games) 
 + 
 +{{:gdevelop5:interface:project-manager:resources8.png?nolink|}}
  
 - Sprite with **smoothing enabled**: - Sprite with **smoothing enabled**:
 +
  
 {{:gdevelop5:interface:project-manager:resourceswithsmoothoff.png?nolink&200|}} {{:gdevelop5:interface:project-manager:resourceswithsmoothoff.png?nolink&200|}}
Line 45: Line 61:
 {{:gdevelop5:interface:project-manager:resourceswithsmoothon.png?nolink&200|}} {{:gdevelop5:interface:project-manager:resourceswithsmoothon.png?nolink&200|}}
  
 +###Always loaded in memory
  
-=== Always loaded in memory === 
  
-<note>Currently in GDevelop, the "Always loaded in memoryoption doesn't work. All the resources (except audio) is always loaded in memory.</note>+<note>Currently the **Always loaded in memory** option is not yet supported. All the resources (except audio) are always loaded at the startup of the game during the loading.</note> 
 + 
 +###Preload as sound/music
  
-=== Preload as sound/music === 
  
 This allows you to preload audio files as music/sound, making them start quickly as you don't have to wait for the audio to load This allows you to preload audio files as music/sound, making them start quickly as you don't have to wait for the audio to load
Line 56: Line 73:
 {{:gdevelop5:interface:project-manager:resoures10.png?nolink |}} {{:gdevelop5:interface:project-manager:resoures10.png?nolink |}}
  
-=== Editing the file path ===+###Some other options/tools
  
-File path is the location where the resource is located in your computer. 
  
-Click "edit" and a file chooser will open, letting you change the file path and choose another file. After you have chosen the file, that file will be used instead of the old one. 
- 
-{{:gdevelop5:interface:project-manager:resources5.png?nolink|}} 
- 
-=== Some other options/tools === 
  
 To use them, click on the 3 dot icon near a resource. To use them, click on the 3 dot icon near a resource.
Line 70: Line 81:
 {{:gdevelop5:interface:project-manager:resources9.png?nolink |}} {{:gdevelop5:interface:project-manager:resources9.png?nolink |}}
  
-=== Renaming ===+###Renaming 
  
 Allows you to rename the resources. The name is the path to the resource by default. You may need to re-open the resource manager to apply the changes to the UI. Allows you to rename the resources. The name is the path to the resource by default. You may need to re-open the resource manager to apply the changes to the UI.
  
-=== Removing ===+###Removing
  
 Removes the selected resource from the project. Removes the selected resource from the project.
  
-=== Open the file ===+<note important>Removing a resource only removes it from the game, it doesn't delete the file from the project folder, you will have to do it manually</note>
  
-Let's you open the selected resource in a player/viewer (Uses the default software for that file type on your system) 
  
-=== Locate file ===+###Open the file 
 + 
 + 
 +Lets you open the selected resource in a player/viewer (Uses the default software for that file type on your system) 
 + 
 +###Locate file 
  
 Opens the selected resource in the file manager of your system. Opens the selected resource in the file manager of your system.
  
-=== Copy file path ===+###Copy file path
  
-Copies the file path to the clipboard (ex: <code> Pictures/NinjaBoy/Player1.png </code> on Desktop, <code> https://resources.gdevelop-app.com/examples/pairs/fonts/LuckiestGuy.ttf </code> on Web App). You can then paste it somewhere else  
  
-=== Scan for images/audio/fonts/videos ===+Copy the file path to the clipboard, you can then paste it somewhere else. 
 + 
 +###Scan for images/audio/fonts/videos 
  
 There might be files that are present in the project folder, but not used by your project. You can add those files by using this. It scans the project folder and adds them to your project. There might be files that are present in the project folder, but not used by your project. You can add those files by using this. It scans the project folder and adds them to your project.
  
-=== Remove unused images/audio/fonts ===+###Remove unused images/audio/fonts
  
 This will remove all the resources that are not being used by your project. These might be the resources that are not used by an object, etc.. This will remove all the resources that are not being used by your project. These might be the resources that are not used by an object, etc..
  
-=== Remove resources with Invalid paths ===+<note important>Removing a resource only removes it from the game, it doesn't delete the file from the project folder, you will have to do it manually</note> 
 + 
 +###Remove resources with Invalid paths
  
 Sometimes resources might have a red text indicating that the file path to that resource is invalid.  Sometimes resources might have a red text indicating that the file path to that resource is invalid.