People Playground Modding
HomeIntroductionFile StructureEmpty mod templateDetailsLayersMod LifecycleMetadataExtended mod descriptionScript FilesShady Code RejectionThe Unity EngineBuilt-in componentsGame assetsTutorialsCreating a modCreating a custom itemCreating a custom behaviourCreating a custom syringeCreating a custom liquidCreating a gun with a custom projectileCreating a custom weapon attachmentSaving, loading, copying, and pastingCustom liquid mixersCode snippetsCartridgesMaterialsParticle effectsPhysical propertiesSpawnable itemsActivation actionRandom sprite assignmentCreating a background scriptChange environment settingsCreate an explosionCreating a lightCustom human spriteDebug drawingEditing pre-existing itemsEmpty entry pointListen for eventsMap IDsRegistering an itemAdding a firearmSpawn particles on activationBasic texture pack systemSource documentationAcceleratorBoltBehaviourAcceleratorGunBehaviourAcidPoisonAcidPoolBehaviourAcidSyringeAcidSyringe.AcidLiquidActionControlBehaviourActionRepresentationActionRepresentation.ActionCategoryActionRepresentation.ActionUniverseActivateIfExpandedGoreActivateIfTutorialActivations.ActivationEventActivations.ActivationEventTypeActivationPropagationActivations.ActivationTargetActivationToggleBehaviourActivationTransformerBehaviourActivatorElectrodeBehaviourActiveSettingIfNotVsyncActOnCollideActOnDestroyActOnDisintegrateActOnShotActOnUserDeleteAdditionalDecalEffectAdrenalinePoisonAdrenalineSyringeAdrenalineSyringe.AdrenalineLiquidAerialFaithPlateBehaviourAirfoilBehaviourAirfoilBehaviour.WingTypeAliveBehaviourAmbientTemperatureGridBehaviourAmbientTemperatureGridBehaviour.CellAndroidLaserBehaviourAndroidSparkCreatorAntiAliasingAntiAliasingRadioButtonAOEPowerToolAppearWhenMouseNearApplicationQuitButtonBehaviourAppliedBandageBehaviourArchelixCasterBehaviourArchelixCasterBoltBehaviourArrayClonerAtomBombBehaviourAtomBombExplosionBehaviourAudioSourceTimeScaleBehaviourUnityEngine.UI.Extensions.AutoCompleteSearchTypeAutomaticSentryControllerAutomaticWheelJointCreatorBackgroundItemLoaderBackgroundItemLoaderStatusBehaviourBallisticsEmitterBallisticsEmitter.CallbackParamsBalloonBehaviourBandageBehaviourBandageWireToolBaseBoltBehaviourBaseControlNamesBathroomMirrorControllerBatteryAttachmentBehaviourBeamCannonBehaviourBeamformerBehaviourBehaviourManager BellBehaviourBellClipBellClipContainerBlackHoleBehaviourBlasterBehaviourBlasterboltBehaviourBleedingParticleBehaviourBloodBloodContainerBloodContainer.PressureDirectionBloodContainer.RefFloatBloodContainer.SerialisableDistributionBloodExplosionBehaviourBloodImpactBehaviourBloodTankBehaviourBloodTankBehaviour.TankModeBloodWireBehaviourBloodWireToolBloomModeBloomModeRadioButtonBlueUseWireToolBoatMotorBehaviourBooleanRadioButtonBoundingBoxBehaviourBreakJointOnBurnBehaviourBreakJointOnShotBehaviourBugReportFormBehaviourBulbBehaviourBulletTracerPoolBurnableSpriteBehaviourBusGeneratorBehaviourButtonBehaviourCableBehaviourCableWireToolCameraControlBehaviourCameraShakeBehaviourCameraSyncBehaviourCannotShareCarBehaviourCardiopulmonaryBypassMachineBehaviourCartridgeCatalogBehaviourCatalogDataCatalogDropdownBehaviourCatalogToggleBehaviourCategoryCategoryButtonBehaviourCeilingTurretBehaviourCenterOfBoundsCenterOfGravityCentrifugeBehaviourChainsawBehaviourChainsawBehaviour.SoftConnectionActivations.ChannelChemistryChemistry.BeverageM04Chemistry.DebugDiscolorationLiquidChemistry.ExoticLiquidChemistry.InertLiquidChemistry.TritiumCirculationBehaviourClearButtonBehaviour
Basic texture pack system
by Talon
public static void Main()
{
ReplaceTextures("Sword");
}
public static void ReplaceTextures(string ItemToReplace)
{
ModAPI.FindSpawnable(ItemToReplace).Prefab.GetComponent<SpriteRenderer>().sprite = ModAPI.LoadSprite("sprites/" + ItemToReplace + ".png");
ModAPI.FindSpawnable(ItemToReplace).ViewSprite = ModAPI.LoadSprite("sprites/" + ItemToReplace + "Thumb.png");
}
Attention!
This member is obsolete and should not be used. It is a remnant from the past.
bi bij bibi