User Tools

Site Tools


preview:api:resource

This is an old revision of the document!


RESOURCE

Category: Asset

List of RESOURCE assets

Properties


ResourceName

  • Type: String

Icon


ResourceTypeList

See RESOURCE_TYPE for the list of core resource types

  • Type: List<String>

ResourceLayoutType


IsTradable

  • Type: Boolean
  • Default value: true

FillnessPerc

  • Type: Float
  • Default value: 1.0f

SellingPrice

  • Type: Float
  • Default value: 1.0f

BuyingPrice

  • Type: Float
  • Default value: 1.0f

VillagerBuyingPrice


CanGoNegative

  • Type: Boolean
  • Default value: false

DisplayInInventory

  • Type: Boolean
  • Default value: true

DisplayInToolbar

  • Type: Boolean
  • Default value: false

DepositSoundEvent

  • Type: String

GatheringSoundEvent

  • Type: String

PlantingSoundEvent

  • Type: String

ConsumptionBehaviorOverride


ResourceVisualPrefab

  • Type: PREFAB
  • Expected: Asset ID
  • Default value: nil

IsOnWater

  • Type: Boolean
  • Default value: false
preview/api/resource.1570055999.txt.gz · Last modified: 2019/10/02 18:39 by maxime

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki