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

Scriptable Object

Discussion in 'Scripting' started by Azrael, Nov 15, 2011.

  1. Azrael

    Azrael

    Joined:
    Jan 23, 2011
    Posts:
    23
    I have a scriptable object that looks like this:

    class SciptOBJ extends ScriptableObject
    {}

    then I have a function to instantiate it:

    @MenuItem("System/CreateAbilty/Item")
    static function CreateSciptOBJ()
    {
    var Ability = ItemAbility.CreateInstance( ItemAbility );
     
    Last edited: Nov 15, 2011
  2. GennadiyKorol

    GennadiyKorol

    Joined:
    Jul 10, 2010
    Posts:
    107
    And then?? You can't not tell us the end now after you've built up all the suspense.
     
  3. renman3000

    renman3000

    Joined:
    Nov 7, 2011
    Posts:
    6,681
    I can not wait. I feel like I have seen a kid take his first poo, and he is bragging. Even his dad is proud and tells all his boys at work.