Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question How to create asset bundle? Please, I'm lost :(

Discussion in 'Asset Bundles' started by EG453, Jun 6, 2022.

  1. EG453

    EG453

    Joined:
    Jun 30, 2021
    Posts:
    2
    In an Custom Editor Window I made, I assign 2 Sprites:

    Code (CSharp):
    1. Sprite spriteA = (Sprtie)EditorGUILayout.ObjectField("spriteA", spriteA, typeof(Sprite), allowSceneObjects: true);
    2. Sprite spriteB= (Sprtie)EditorGUILayout.ObjectField("spriteB", spriteB, typeof(Sprite), allowSceneObjects: true);
    3.  
    now I want to store them in a new Assets Bundle I want to create in code (not manually).
    How can I do it?
     
  2. kbop2000

    kbop2000

    Joined:
    Apr 17, 2019
    Posts:
    14