Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

ScriptableObject.CreateInstance

public static function CreateInstance(className: string): ScriptableObject;

Description

Creates an instance of a scriptable object with className.

public static function CreateInstance(type: Type): ScriptableObject;

Description

Creates an instance of a scriptable object with type.

public static function CreateInstance(): T;

Description

Creates an instance of a scriptable object with T.