Search Feedback

0
votes

Make Resources.Load check if File exists @ compile level

Scripting

-

-

The problem I have with Resources.Load to load textures and sounds etc. is that it just takes a string path which will never get evaluated during compile time. This is, at least in my case, very error prone since if you just type in a wrong case or mix up two letters the file won't load any more during runtime. It would be great if there would be a way to let the script evaluate if there is such a file to give some warning.

Your opinion counts

Help us make things better. Share your great idea for improving Unity or vote for other people’s.

Log in to post a new idea

Categories

All

(10511)

2D

(274)

Ads

(52)

AI & Navigation

(78)

Analytics

(125)

Animation

(389)

Asset Store

(330)

Asset Store Publisher

(10)

Assets

(534)

Audio

(176)

Cloud Build

(139)

Collaborate

(57)

Docs & Tutorials

(237)

Editor

(2450)

Everyplay

(14)

Game Performance Reporting

(15)

General

(950)

Graphics

(861)

GUI

(422)

Input

(165)

Licensing

(88)

Networking

(185)

Physics

(380)

Platforms

(438)

Profiling & Optimization

(81)

Runtime

(180)

Scripting

(1146)

Terrain

(168)

WebGL

(141)