Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • R regulations
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • world3
  • regulations
  • Wiki
  • asset bundle name

asset bundle name · Changes

Page history
Togo01 created page: asset bundle name authored Oct 19, 2015 by Togo01's avatar Togo01
Hide whitespace changes
Inline Side-by-side
asset-bundle-name.md 0 → 100644
View page @ 2727c6c0
# AssetBundle名稱規則
## 簡介
世界3在 AssetBundle 打包機制上採用資料夾路徑為主,分別採用兩種打包方式`單一素材包`與`多素材包`。
## 規則
1. 多素材打包以 `<ProjectRoot>/Asset/Resources/Asset/` 下為起點,以 `_` 符號串接資料夾名稱,並加上[`鍵值`](asset-name#規則)(檔案名稱`#`符號後的名稱),即為 AssetBundle 名稱。
2. 單一素材打包同多素材打包,但在 AssetBundle 名稱後加上檔案的[`自定義識別字元`](asset-name#規則),即為 AssetBundle 名稱。
3. 預設的打包方式為`單一素材打包`,若希望該資料夾為`多素材打包`模式則需在對應的資料夾位置放置一個同名的文字檔案,並設定副檔名為`abmeta`。而這份描述檔案內若有紀錄`multiAssetPack: true`表示該資料夾下同鍵值的素材為多素材打包模式。
## 案例
'Prefab/Hero/Warrior/hero_warrior#0001.prefab' -> `Prefab_Hero_Warrior_0001`
'Prefab/HeroLow/Warrior/hero_warrior#0001.prefab' -> `Prefab_HeroLow_Warrior_0001`
'Prefab/HeroHigh/Warrior/hero_warrior#0001.prefab' -> `Prefab_HeroHigh_Warrior_0001`
'Texture/Hero/Warrior/hero_warrior#0001_c.tga' -> `Texture_HeroHigh_Warrior_0001_c`
'Material/Hero/Mage/hero_mage#0001.mat' -> `Material_Hero_Mage_0001`
'Controller/Ogre/ogre#0001.controller' -> `Controller_Ogre_0001`
## 多素材案例
'Animation/Hero/Warrior.abmeta'
> multiAssetPack: true
'Animation/Hero/Warrior/hero_warrior#0001_Attack_1.anim'
'Animation/Hero/Warrior/hero_warrior#0001_Attack_2.anim'
'Animation/Hero/Warrior/hero_warrior#0001_Jump.anim'
三個檔案會打在同一包 `Animation_Hero_Warrior_0001`
\ No newline at end of file
Clone repository
  • asset bundle name
  • asset folder
  • asset id generate
  • asset name
  • Home