평점 만점의 리뷰가 11,000개 이상

8만 5천명 이상의 리뷰

10만명 이상의 포럼 멤버가 선호하는 에셋

유니티에서 모더레이팅하는 모든 에셋

도구
유틸리티
1/3
This is an add-on to Addressables that gives you the ability to use your assets in a very convenient way with compile-time checking.
Render pipeline compatibility
The Built-in Render Pipeline is Unity’s default render pipeline. It is a general-purpose render pipeline that has limited options for customization. The Universal Render Pipeline (URP) is a Scriptable Render Pipeline that is quick and easy to customize, and lets you create optimized graphics across a wide range of platforms. The High Definition Render Pipeline (HDRP) is a Scriptable Render Pipeline that lets you create cutting-edge, high-fidelity graphics on high-end platforms.
Unity VersionBuilt-inURPHDRP
6000.0.32f1
Compatible
Compatible
Compatible
2023.2.20f1
Compatible
Compatible
Compatible
설명

Overview

This package is an add-on to Addressables that gives you the ability to use your assets in a very convenient way with compile-time checking.


How to generate source codes

You can use an `AddressablesSourceGenerator` asset.

```

var generator = AssetDatabase.LoadAssetAtPath<AddressableSourceGenerator>( AssetDatabase.GUIDToAssetPath( AssetDatabase.FindAssets( "t:AddressableSourceGenerator" ).Single() ) );

generator.Generate();

```

Or you can use an `ResourcesSourceGenerator` and `LabelsSourceGenerator` classes.

```

var settings = AddressableAssetSettingsDefaultObject.Settings;

new ResourcesSourceGenerator().Generate( "Assets/UnityEngine.AddressableAssets/R.cs", "UnityEngine.AddressableAssets", "R", settings );

new LabelsSourceGenerator().Generate( "Assets/UnityEngine.AddressableAssets/L.cs", "UnityEngine.AddressableAssets", "L", settings );

```


Example of generated source codes

It generates source codes that looks something like this:

```

namespace UnityEngine.AddressableAssets {

public static class @R {

public static class @MyProject {

public static class @Scenes {

public const string @MainScene = "MyProject/Scenes/MainScene.unity";

public const string @GameScene = "MyProject/Scenes/GameScene.unity";

}

}

}

public static class @L {

public const string @default = "default";

public const string @Scene = "scene";

}

}

```


How to use generated source codes

You can use your assets very easily:

```

var address = R.MyProject.Scenes.MainScene;

var label = L.Scene;

```

Technical details
  • Easy use of all addresses and labels.
  • Compiler-time checking.

Addressables Source Generator

(평가가 충분하지 않습니다)
5 users have favourite this asset
(5)
FREE
라이선스
파일 크기
45.7 KB
최신 버전
1.0
최신 릴리스 날짜
2024년 12월 25일
원본 Unity 버전
2023.2.20
Quality assets
Over 11,000 five-star assets
Trusted
Rated by 85,000+ customers
Community support
Supported by 100,000+ forum members
Unity logo
언어
어필리에이트 프로그램
멤버십링크 생성기어필리에이트 ID
Feedback
파트너 프로그램
협력사
USD
EUR
Copyright © 2025 Unity Technologies
모든 가격은 부가가치세를 제외한 금액입니다.
USD
EUR
FREE