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

(10775)

2D

(281)

Ads

(54)

AI & Navigation

(81)

Analytics

(130)

Animation

(396)

Asset Store

(355)

Asset Store Publisher

(16)

Assets

(543)

Audio

(184)

Cloud Build

(145)

Collaborate

(64)

Docs & Tutorials

(239)

Editor

(2516)

Everyplay

(17)

Game Performance Reporting

(21)

General

(981)

Graphics

(871)

GUI

(430)

Input

(172)

Licensing

(90)

Networking

(189)

Physics

(383)

Platforms

(442)

Profiling & Optimization

(84)

Runtime

(182)

Scripting

(1170)

Terrain

(171)

WebGL

(142)