Class PrimaryDataAsset
A DataAsset that implements GetPrimaryAssetId and has asset bundle support, which makes it something that can be manually loaded/unloaded from the AssetManager Making blueprint subclasses of this is useful because you can make blueprint-only primary asset types Blueprint subclasses will end up with a PrimaryAssetType equal to the name of the first native class found going up the hierarchy, or the top level blueprint class that directly subclasses this IE, if you have PrimaryDataAsset -> ParentNativeClass -> ChildNativeClass -> BlueprintAsset the type will be ChildNativeClass Whereas if you have PrimaryDataAsset -> ParentBlueprintClass -> ChildBlueprintClass the type will be ParentBlueprintClass
Inherited Members
Namespace: UE4.Engine
Assembly: UE4DotNet.dll
Syntax
public class PrimaryDataAsset : DataAsset
Remarks
To override this behavior, override GetPrimaryAssetId in your native class
Properties
| Improve this Doc View SourceAssetBundleData
Asset Bundle data computed at save time. In cooked builds this is accessible from AssetRegistry
Declaration
public AssetBundleData AssetBundleData { get; set; }
Property Value
Type | Description |
---|---|
AssetBundleData |
DefaultObject
Get UE4 Default Object for this Class
Declaration
public static PrimaryDataAsset DefaultObject { get; }
Property Value
Type | Description |
---|---|
PrimaryDataAsset |
StaticClass
Get UE4 Class
Declaration
public static Class StaticClass { get; }
Property Value
Type | Description |
---|---|
Class |
Methods
| Improve this Doc View SourceNew(UObject, Name)
Spawn an object of this class
Declaration
public static PrimaryDataAsset New(UObject obj = null, Name name = default(Name))
Parameters
Type | Name | Description |
---|---|---|
UObject | obj | |
Name | name |
Returns
Type | Description |
---|---|
PrimaryDataAsset |
Operators
| Improve this Doc View SourceImplicit(IntPtr to PrimaryDataAsset)
Convert from IntPtr to UObject
Declaration
public static implicit operator PrimaryDataAsset(IntPtr p)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | p |
Returns
Type | Description |
---|---|
PrimaryDataAsset |