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

(10244)

2D

(266)

Ads

(51)

AI & Navigation

(78)

Analytics

(121)

Animation

(379)

Asset Store

(295)

Asset Store Publisher

(7)

Assets

(524)

Audio

(173)

Cloud Build

(135)

Collaborate

(48)

Docs & Tutorials

(233)

Editor

(2374)

Everyplay

(13)

Game Performance Reporting

(16)

General

(919)

Graphics

(847)

GUI

(413)

Input

(160)

Licensing

(86)

Networking

(181)

Physics

(372)

Platforms

(434)

Profiling & Optimization

(78)

Runtime

(176)

Scripting

(1131)

Terrain

(167)

WebGL

(140)